summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-03-20 17:39:11 +0300
committerSteven Rostedt <rostedt@goodmis.org>2010-05-06 19:49:52 -0400
commitd9f599e1e6d019968b35d2dc63074b9e8964fa69 (patch)
tree6253e19189306cef7952310d6ef62fb6ab675481 /kernel
parent4778e0e8c64f683a71632dba1cff1f85f76f83c4 (diff)
downloadlwn-d9f599e1e6d019968b35d2dc63074b9e8964fa69.tar.gz
lwn-d9f599e1e6d019968b35d2dc63074b9e8964fa69.zip
perf: Fix check at end of event search
The original code doesn't work because "call" is never NULL there. Signed-off-by: Dan Carpenter <error27@gmail.com> LKML-Reference: <20100320143911.GF5331@bicker> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace_events_filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events_filter.c
index 88c0b6dbd7fe..58092d844a1f 100644
--- a/kernel/trace/trace_events_filter.c
+++ b/kernel/trace/trace_events_filter.c
@@ -1398,7 +1398,7 @@ int ftrace_profile_set_filter(struct perf_event *event, int event_id,
}
err = -EINVAL;
- if (!call)
+ if (&call->list == &ftrace_events)
goto out_unlock;
err = -EEXIST;