Message ID | 20221120200735.791518959@goodmis.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [for-linus,01/13] tracing/ring-buffer: Have polling block on watermark | expand |
diff --git a/kernel/trace/trace_eprobe.c b/kernel/trace/trace_eprobe.c index 5dd0617e5df6..9cda9a38422c 100644 --- a/kernel/trace/trace_eprobe.c +++ b/kernel/trace/trace_eprobe.c @@ -563,6 +563,9 @@ static void eprobe_trigger_func(struct event_trigger_data *data, { struct eprobe_data *edata = data->private_data; + if (unlikely(!rec)) + return; + __eprobe_trace_func(edata, rec); }