Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1398,7 +1398,7 @@ int ftrace_profile_set_filter(struct perf_event *event, int event_id,
	}
	}


	err = -EINVAL;
	err = -EINVAL;
	if (!call)
	if (&call->list == &ftrace_events)
		goto out_unlock;
		goto out_unlock;


	err = -EEXIST;
	err = -EEXIST;