Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223442
b: refs/heads/master
c: ce67783
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Ingo Molnar committed Dec 16, 2010
1 parent 979c2a2 commit 2aa5edc
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 5167695753c63444a9e6cbbef136200a16c7a225
refs/heads/master: ce677831a4abd0f9f957c90ac6f6a0d0472bafb4
2 changes: 1 addition & 1 deletion trunk/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -4719,7 +4719,7 @@ static int perf_swevent_init(struct perf_event *event)
break;
}

if (event_id > PERF_COUNT_SW_MAX)
if (event_id >= PERF_COUNT_SW_MAX)
return -ENOENT;

if (!event->parent) {
Expand Down

0 comments on commit 2aa5edc

Please sign in to comment.