From: Naga Chumbalkar Date: Wed, 14 Sep 2011 23:22:23 +0000 (-0700) Subject: drivers/cpufreq/pcc-cpufreq.c: avoid NULL pointer dereference X-Git-Tag: v3.1-rc7~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e71f5cc402ecb42b407ae52add7b173bf1c53daa;p=pandora-kernel.git drivers/cpufreq/pcc-cpufreq.c: avoid NULL pointer dereference per_cpu(processors, n) can be NULL, resulting in: Loading CPUFreq modules[ 437.661360] BUG: unable to handle kernel NULL pointer dereference at (null) IP: [] pcc_cpufreq_cpu_init+0x74/0x220 [pcc_cpufreq] It's better to avoid the oops by failing the driver, and allowing the system to boot. Signed-off-by: Naga Chumbalkar Cc: Dave Jones Cc: Len Brown Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed