forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/kernel/trace/trace_probe.h
....@@ -301,7 +301,7 @@
301301 {
302302 struct trace_probe_event *tpe = trace_probe_event_from_call(call);
303303
304
- return list_first_entry(&tpe->probes, struct trace_probe, list);
304
+ return list_first_entry_or_null(&tpe->probes, struct trace_probe, list);
305305 }
306306
307307 static inline struct list_head *trace_probe_probe_list(struct trace_probe *tp)