aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorIan Schram <[email protected]>2009-09-18 21:26:26 +0200
committerIngo Molnar <[email protected]>2009-09-19 19:32:55 +0200
commitcdf8073d6b2c6c5a3cd6ce0e6c1297157f7f99ba (patch)
treec5b68d4ded3b82a934c7bd25d798b8b3870e5b25 /lib/cpu-notifier-error-inject.c
parentec60a3fe478c0fc6d109eb5840b435ecee4d132b (diff)
perf_counter: Fix perf_copy_attr() pointer arithmetic
There is still some weird code in per_copy_attr(). Which supposedly checks that all bytes trailing a struct are zero. It doesn't seem to get pointer arithmetic right. Since it increments an iterating pointer by sizeof(unsigned long) rather than 1. Signed-off-by: Ian Schram <[email protected]> [ v2: clean up the messy PTR_ALIGN logic as well. ] Signed-off-by: Peter Zijlstra <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: <[email protected]> # for v2.6.31.x LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions