We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7877cb9 commit 81d0fa4Copy full SHA for 81d0fa4
kernel/trace/trace_probe.h
@@ -308,7 +308,7 @@ trace_probe_primary_from_call(struct trace_event_call *call)
308
{
309
struct trace_probe_event *tpe = trace_probe_event_from_call(call);
310
311
- return list_first_entry(&tpe->probes, struct trace_probe, list);
+ return list_first_entry_or_null(&tpe->probes, struct trace_probe, list);
312
}
313
314
static inline struct list_head *trace_probe_probe_list(struct trace_probe *tp)
0 commit comments