aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace_events_filter.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events_filter.c
index 8c62e5bdff09..85ad6a8939ad 100644
--- a/kernel/trace/trace_events_filter.c
+++ b/kernel/trace/trace_events_filter.c
@@ -636,14 +636,15 @@ static int filter_add_subsystem_pred(struct filter_parse_state *ps,
636 636
637 err = filter_add_pred(ps, call, pred); 637 err = filter_add_pred(ps, call, pred);
638 if (err) { 638 if (err) {
639 mutex_unlock(&event_mutex);
639 filter_free_subsystem_preds(system); 640 filter_free_subsystem_preds(system);
640 parse_error(ps, FILT_ERR_BAD_SUBSYS_FILTER, 0); 641 parse_error(ps, FILT_ERR_BAD_SUBSYS_FILTER, 0);
641 break; 642 goto out;
642 } 643 }
643 replace_filter_string(call->filter, filter_string); 644 replace_filter_string(call->filter, filter_string);
644 } 645 }
645 mutex_unlock(&event_mutex); 646 mutex_unlock(&event_mutex);
646 647out:
647 return err; 648 return err;
648} 649}
649 650