From 135bffd652cf3afbbb9b9639732cc272e74b6ef8 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 20 Dec 2011 13:25:24 -0200 Subject: [PATCH] kmod_config: fix kcmd line parser with dots after = Check if '=' appeared before the dot. In this case, it's not a valid module option in kernel command line. The command line that was failing is: "root=/dev/sda3 ro pcie_aspm=force init=/sbin/bootchartd initrd=../initramfs-linux.img BOOT_IMAGE=../vmlinuz-linux" --- libkmod/libkmod-config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libkmod/libkmod-config.c b/libkmod/libkmod-config.c index 170d1338..dd83c859 100644 --- a/libkmod/libkmod-config.c +++ b/libkmod/libkmod-config.c @@ -460,7 +460,8 @@ static int kmod_config_parse_kcmdline(struct kmod_config *config) param = p + 1; break; case '=': - value = p + 1; + if (param != NULL) + value = p + 1; break; } } -- 2.47.2