Commit d9f599e1 authored by Dan Carpenter's avatar Dan Carpenter Committed by Steven Rostedt

perf: Fix check at end of event search

The original code doesn't work because "call" is never NULL there.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
LKML-Reference: <20100320143911.GF5331@bicker>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 4778e0e8
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment