diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2009-05-01 22:25:11 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-05-03 10:49:31 +0200 |
commit | 9a8709d44139748fe2e0ab56d20d8c384c8b65ad (patch) | |
tree | 624b9ff6b2f68b3a70f424413778ae741835b6ae /arch/powerpc/platforms/pasemi/setup.c | |
parent | x86: uv io-apic - use BUILD_BUG_ON instead of BUG_ON (diff) | |
download | linux-9a8709d44139748fe2e0ab56d20d8c384c8b65ad.tar.xz linux-9a8709d44139748fe2e0ab56d20d8c384c8b65ad.zip |
x86: uv - prevent NULL dereference in uv_system_init()
We may reach NULL dereference oops if kmalloc failed.
Prevent it with explicit BUG_ON.
[ Impact: more controlled assert in 'impossible' scenario ]
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Jack Steiner <steiner@sgi.com>
LKML-Reference: <20090501202511.GE4633@lenovo>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/powerpc/platforms/pasemi/setup.c')
0 files changed, 0 insertions, 0 deletions