diff --git a/kernel/trace/trace_eprobe.c b/kernel/trace/trace_eprobe.c index 860f5fb9514d73..3b055aaee89a91 100644 --- a/kernel/trace/trace_eprobe.c +++ b/kernel/trace/trace_eprobe.c @@ -560,6 +560,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); }