aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/trace/trace.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 3009aafa4dde..ea11f4ebfae1 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -964,8 +964,10 @@ static void *s_start(struct seq_file *m, loff_t *pos)
964 964
965 mutex_lock(&trace_types_lock); 965 mutex_lock(&trace_types_lock);
966 966
967 if (!current_trace || current_trace != iter->trace) 967 if (!current_trace || current_trace != iter->trace) {
968 mutex_unlock(&trace_types_lock);
968 return NULL; 969 return NULL;
970 }
969 971
970 atomic_inc(&trace_record_cmdline_disabled); 972 atomic_inc(&trace_record_cmdline_disabled);
971 973