summaryrefslogtreecommitdiffstats
path: root/discover/kboot-parser.c
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2012-03-16 21:59:18 -0700
committerGeoff Levand <geoff@infradead.org>2012-03-16 22:05:06 -0700
commit54f94570b65095c5b9251981956102d3f2864f90 (patch)
treeaaeefa4223c72b5edcc6ed7a367094942f2967e9 /discover/kboot-parser.c
parentde0c5004fb5ac4a7afc7e231876ff0a8eead4e2c (diff)
downloadtalos-petitboot-54f94570b65095c5b9251981956102d3f2864f90.zip
talos-petitboot-54f94570b65095c5b9251981956102d3f2864f90.tar.gz
Fix seg fault with bare kboot.conf variables
Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'discover/kboot-parser.c')
-rw-r--r--discover/kboot-parser.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/discover/kboot-parser.c b/discover/kboot-parser.c
index 7c7cb5d..429ae09 100644
--- a/discover/kboot-parser.c
+++ b/discover/kboot-parser.c
@@ -21,6 +21,11 @@ static void kboot_process_pair(struct conf_context *conf, const char *name,
const char *root;
struct boot_option *opt;
+ /* fixup for bare values */
+
+ if (!name)
+ return;
+
if (conf_param_in_list(ignored_names, name))
return;
OpenPOWER on IntegriCloud