diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 9e82551dd566057c61a862e7b27b395939d270e3..9258f5a815db4d4fe4a8d314a2593218b3c4e5ce 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -252,7 +252,7 @@ static inline struct trace_array *top_trace_array(void) { struct trace_array *tr; - if (list_empty(ftrace_trace_arrays.prev)) + if (list_empty(&ftrace_trace_arrays)) return NULL; tr = list_entry(ftrace_trace_arrays.prev,