aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-01-27 22:53:06 -0500
committerSteven Rostedt <rostedt@goodmis.org>2011-02-07 20:56:18 -0500
commitf76690afd05e3e163149310bdcd30234f93b3a7a (patch)
tree83c0808d1354b26473ab0ac77515f4f683de32d1 /kernel/trace
parent74e9e58c350a24139e268dd6857bbaa55c5aafcf (diff)
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>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace_events_filter.c4
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 }