diff options
author | Naga Chumbalkar <nagananda.chumbalkar@hp.com> | 2011-09-14 19:22:23 -0400 |
---|---|---|
committer | Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com> | 2011-10-17 13:32:53 -0400 |
commit | 6185ff7cca118512da1b0f67db981e14b2a7984a (patch) | |
tree | 1c6da263f418a99bb5d9a454749f3a04f5676167 /kernel/workqueue.c | |
parent | 9203a17b950d7fa7010924fbc1dcb53ef19ba3be (diff) |
drivers/cpufreq/pcc-cpufreq.c: avoid NULL pointer dereference
BugLink: http://bugs.launchpad.net/bugs/868628
commit e71f5cc402ecb42b407ae52add7b173bf1c53daa upstream.
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: [<ffffffffa0434314>] 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 <nagananda.chumbalkar@hp.com>
Cc: Dave Jones <davej@codemonkey.org.uk>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel/workqueue.c')
0 files changed, 0 insertions, 0 deletions