Ian Schram cdf8073d6b 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 <ischram@telenet.be>
[ v2: clean up the messy PTR_ALIGN logic as well. ]
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: <stable@kernel.org> # for v2.6.31.x
LKML-Reference: <4AB3DEE2.3030600@telenet.be>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-09-19 19:32:55 +02:00
..
2009-08-20 10:29:28 +10:00
2009-09-14 20:26:59 +02:00
2009-06-24 00:02:38 -04:00
2009-06-24 00:02:38 -04:00
2008-10-16 11:21:30 -07:00
2009-06-16 19:47:48 -07:00
2009-08-28 23:41:29 -07:00
2008-07-28 14:37:38 +02:00
2009-05-15 07:56:24 -05:00
2009-07-24 10:53:29 +02:00
2009-01-14 18:09:02 +01:00
2009-06-18 13:03:56 -07:00
2009-07-24 15:30:45 -04:00
2009-06-18 13:03:55 -07:00
2008-09-02 19:21:40 -07:00
2009-09-14 17:41:42 -07:00
2009-07-14 00:30:40 +10:00
2009-09-18 20:47:30 +02:00
2009-09-15 16:51:30 +02:00
2009-09-15 16:51:30 +02:00
2009-08-01 11:18:56 -07:00
2009-08-26 17:24:28 -07:00
2009-06-16 19:47:48 -07:00
2009-07-12 14:03:27 -07:00
2009-06-15 21:30:23 -07:00
2009-06-18 13:03:55 -07:00