lkml.org 
[lkml]   [2010]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Regression, post-2.6.34-rc1][PATCH] x86 / perf: Fix suspend to RAM on HP nx6325


On Sat, 20 Mar 2010, Peter Zijlstra wrote:
>
> cpuhw = &per_cpu(cpu_hw_events, cpu);
> + if (!cpuhw)
> + return;

How can an address-of expression be NULL?

Yes, 'per_cpu()' is magic, but it shouldn't be possible to be _that_
magic. It's rather against the whole C model.

Linus


\
 
 \ /
  Last update: 2010-03-20 18:55    [W:0.071 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site