perf_counter: Fix perf_output_copy() WARN to account for overflow
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 13 May 2009 19:26:19 +0000 (21:26 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 15 May 2009 07:46:59 +0000 (09:46 +0200)
The simple reservation test in perf_output_copy() failed to take
unsigned int overflow into account, fix this.

[ Impact: fix false positive warning with more than 4GB of profiling data ]

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found