Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147452
b: refs/heads/master
c: 53020fe
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed May 15, 2009
1 parent dd80159 commit 0cac647
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a026dfecc035f213c1cfa0bf6407ce3155f6a9df
refs/heads/master: 53020fe81eecd0b7be295868ce5850ef8f41074e
6 changes: 5 additions & 1 deletion trunk/kernel/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1927,7 +1927,11 @@ static void perf_output_copy(struct perf_output_handle *handle,

handle->offset = offset;

WARN_ON_ONCE(handle->offset > handle->head);
/*
* Check we didn't copy past our reservation window, taking the
* possible unsigned int wrap into account.
*/
WARN_ON_ONCE(((int)(handle->head - handle->offset)) < 0);
}

#define perf_output_put(handle, x) \
Expand Down

0 comments on commit 0cac647

Please sign in to comment.