aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <[email protected]>2009-08-06 21:16:44 +1000
committerIngo Molnar <[email protected]>2009-08-06 13:55:09 +0200
commite0d82a0a4e9841b787e6431ccfbb515546c55dc2 (patch)
tree5fe4ea05533ca0c60f90e27bd5fd9c3aacbcd668 /net/lapb/lapb_iface.c
parentaf6af30c0fcd77e621638e53ef8b176bca8bd3b4 (diff)
perf_counter/powerpc: Check oprofile_cpu_type for NULL before using it
If the current CPU doesn't support performance counters, cur_cpu_spec->oprofile_cpu_type can be NULL. The current perf_counter modules don't test for that case and would thus crash at boot time. Bug reported by David Woodhouse. Reported-by: David Woodhouse <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]> Cc: Peter Zijlstra <[email protected]> Signed-off-by: Paul Mackerras <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions