mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 08:02:07 +00:00
tracing/filter: Free pred array on disabling of filter
When a filter is disabled, free the preds. Cc: Tom Zanussi <tzanussi@gmail.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
74e9e58c35
commit
f76690afd0
@ -1388,6 +1388,10 @@ int apply_event_filter(struct ftrace_event_call *call, char *filter_string)
|
||||
|
||||
if (!strcmp(strstrip(filter_string), "0")) {
|
||||
filter_disable_preds(call);
|
||||
reset_preds(call->filter);
|
||||
/* Make sure the filter is not being used */
|
||||
synchronize_sched();
|
||||
__free_preds(call->filter);
|
||||
remove_filter_string(call->filter);
|
||||
goto out_unlock;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user