mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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]>