diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index df394bc6d54bb941ff0c4a09bc89e74f392a90fe..2eecb87e42d3a2756f2b02b8363fc8e4d820620d 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c @@ -118,7 +118,7 @@ static int __ftrace_set_clr_event(const char *match, const char *sub, const char *event, int set) { struct ftrace_event_call *call; - int ret; + int ret = -EINVAL; mutex_lock(&event_mutex); list_for_each_entry(call, &ftrace_events, list) {