projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5167695
)
perf: Fix off by one in perf_swevent_init()
author
Dan Carpenter
<error27@gmail.com>
Sun, 24 Oct 2010 19:50:42 +0000
(21:50 +0200)
committer
Ingo Molnar
<mingo@elte.hu>
Thu, 16 Dec 2010 10:14:31 +0000
(11:14 +0100)
The perf_swevent_enabled[] array has PERF_COUNT_SW_MAX elements.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <
20101024195041
.GT5985@bicker>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_event.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/perf_event.c
b/kernel/perf_event.c
index 7b870174c56d24b4524073e9a1b47784effbdc86..2870feee81dd7a046703645c9ec50022d4339f39 100644
(file)
--- a/
kernel/perf_event.c
+++ b/
kernel/perf_event.c
@@
-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) {