summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/trace/trace_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c
index 5fc51f0f75f..8bd9a2c1a46 100644
--- a/kernel/trace/trace_output.c
+++ b/kernel/trace/trace_output.c
@@ -541,7 +541,7 @@ int register_ftrace_event(struct trace_event *event)
INIT_LIST_HEAD(&event->list);
if (!event->type) {
- struct list_head *list;
+ struct list_head *list = NULL;
if (next_event_type > FTRACE_MAX_EVENT) {