Skip to content

Commit

Permalink
perf: Fix check at end of event search
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
error27 authored and rostedt committed May 6, 2010
1 parent 4778e0e commit d9f599e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/trace_events_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d9f599e

Please sign in to comment.