diff options
-rw-r--r-- | kernel/trace/trace_events_filter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events_filter.c index b6c910642a1e..2f5458e244a3 100644 --- a/kernel/trace/trace_events_filter.c +++ b/kernel/trace/trace_events_filter.c | |||
@@ -1388,6 +1388,10 @@ int apply_event_filter(struct ftrace_event_call *call, char *filter_string) | |||
1388 | 1388 | ||
1389 | if (!strcmp(strstrip(filter_string), "0")) { | 1389 | if (!strcmp(strstrip(filter_string), "0")) { |
1390 | filter_disable_preds(call); | 1390 | filter_disable_preds(call); |
1391 | reset_preds(call->filter); | ||
1392 | /* Make sure the filter is not being used */ | ||
1393 | synchronize_sched(); | ||
1394 | __free_preds(call->filter); | ||
1391 | remove_filter_string(call->filter); | 1395 | remove_filter_string(call->filter); |
1392 | goto out_unlock; | 1396 | goto out_unlock; |
1393 | } | 1397 | } |