aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/trace/trace_events_filter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events_filter.c
index 27c2dbea3710..490337abed75 100644
--- a/kernel/trace/trace_events_filter.c
+++ b/kernel/trace/trace_events_filter.c
@@ -1050,6 +1050,8 @@ static int replace_preds(struct event_subsystem *system,
1050 1050
1051 pred = create_pred(elt->op, operand1, operand2); 1051 pred = create_pred(elt->op, operand1, operand2);
1052add_pred: 1052add_pred:
1053 if (!pred)
1054 return -ENOMEM;
1053 if (call) 1055 if (call)
1054 err = filter_add_pred(ps, call, pred, false); 1056 err = filter_add_pred(ps, call, pred, false);
1055 else 1057 else