Messages in this thread | | | Date | Thu, 6 Aug 2009 13:55:53 +0200 | From | Ingo Molnar <> | Subject | Re: [PATCH] perf_counter/powerpc: Check oprofile_cpu_type for NULL before using it |
| |
* Paul Mackerras <paulus@samba.org> wrote:
> From: Benjamin Herrenschmidt <benh@kernel.crashing.org> > > 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. > > Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> > Reported-by: David Woodhouse <dwmw2@infradead.org> > Signed-off-by: Paul Mackerras <paulus@samba.org> > --- > Ingo, this needs to go in for .31 since it fixes a boot-time oops. > Are you going to be sending a batch to Linus shortly or should I send > this to him separately?
Yeah, wanted to send a batch of fixes later today - so i've queued this one up too in perfcounters/urgent.
Thanks,
Ingo
| |