From: Mathias Krause Date: Tue, 19 Feb 2013 19:47:07 +0000 (+0100) Subject: x86/apic: Fix parsing of the 'lapic' cmdline option X-Git-Tag: v3.9-rc1~60^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27cf929845b10043f2257693c7d179a9e0b1980e;p=pandora-kernel.git x86/apic: Fix parsing of the 'lapic' cmdline option Including " lapic " in the kernel cmdline on an x86-64 kernel makes it panic while parsing early params -- e.g. with no user visible output. Fix this bug by ensuring arg is non-NULL before passing it to strncmp(). Reported-by: PaX Team Signed-off-by: Mathias Krause Acked-by: David Rientjes Cc: Suresh Siddha Link: http://lkml.kernel.org/r/1361303227-13174-1-git-send-email-minipli@googlemail.com Cc: stable@vger.kernel.org # v3.8 Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed