lkml.org 
[lkml]   [2009]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2009-08-06 13:59    [W:0.031 / U:1.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site