提交 d9f599e1 编写于 作者: D Dan Carpenter 提交者: 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: NDan Carpenter <error27@gmail.com>
LKML-Reference: <20100320143911.GF5331@bicker>
Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册