From: Li Zefan Date: Tue, 7 May 2013 13:56:54 +0000 (+0200) Subject: menuconfig: fix NULL pointer dereference when searching a symbol X-Git-Tag: 1.9.9~28 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=e5ef38a8fa9ef524c3ef061083ce35d1529e5ea0;hp=e5ef38a8fa9ef524c3ef061083ce35d1529e5ea0;p=carl9170fw.git menuconfig: fix NULL pointer dereference when searching a symbol Searching for PPC_EFIKA results in a segmentation fault, and it's because get_symbol_prop() returns NULL. In this case CONFIG_PPC_EFIKA is defined in arch/powerpc/platforms/ 52xx/Kconfig, so it won't be parsed if ARCH!=PPC, but menuconfig knows this symbol when it parses sound/soc/fsl/Kconfig: config SND_MPC52xx_SOC_EFIKA tristate "SoC AC97 Audio support for bbplan Efika and STAC9766" depends on PPC_EFIKA This bug was introduced by commit bcdedcc1afd6 ("menuconfig: print more info for symbol without prompts"). Reported-and-tested-by: Borislav Petkov Signed-off-by: Li Zefan Tested-by: Libo Chen Reviewed-by: "Yann E. MORIN" Signed-off-by: Michal Marek Signed-off-by: Linus Torvalds Signed-off-by: Christian Lamparter ---