diff options
author | Dan Carpenter <error27@gmail.com> | 2010-03-20 10:39:11 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-05-06 19:49:52 -0400 |
commit | d9f599e1e6d019968b35d2dc63074b9e8964fa69 (patch) | |
tree | 6253e19189306cef7952310d6ef62fb6ab675481 /kernel/trace | |
parent | 4778e0e8c64f683a71632dba1cff1f85f76f83c4 (diff) |
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/trace')
-rw-r--r-- | kernel/trace/trace_events_filter.c | 2 |
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, | |||
1398 | } | 1398 | } |
1399 | 1399 | ||
1400 | err = -EINVAL; | 1400 | err = -EINVAL; |
1401 | if (!call) | 1401 | if (&call->list == &ftrace_events) |
1402 | goto out_unlock; | 1402 | goto out_unlock; |
1403 | 1403 | ||
1404 | err = -EEXIST; | 1404 | err = -EEXIST; |