From: Lucas De Marchi Date: Tue, 20 Dec 2011 15:25:24 +0000 (-0200) Subject: kmod_config: fix kcmd line parser with dots after = X-Git-Tag: v2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=135bffd652cf3afbbb9b9639732cc272e74b6ef8;p=thirdparty%2Fkmod.git 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" --- 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; } }