diff options
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 02d32baa23ac..a3a8a87d7e91 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -808,6 +808,7 @@ void trace_find_cmdline(int pid, char comm[]) | |||
808 | return; | 808 | return; |
809 | } | 809 | } |
810 | 810 | ||
811 | preempt_disable(); | ||
811 | __raw_spin_lock(&trace_cmdline_lock); | 812 | __raw_spin_lock(&trace_cmdline_lock); |
812 | map = map_pid_to_cmdline[pid]; | 813 | map = map_pid_to_cmdline[pid]; |
813 | if (map != NO_CMDLINE_MAP) | 814 | if (map != NO_CMDLINE_MAP) |
@@ -816,6 +817,7 @@ void trace_find_cmdline(int pid, char comm[]) | |||
816 | strcpy(comm, "<...>"); | 817 | strcpy(comm, "<...>"); |
817 | 818 | ||
818 | __raw_spin_unlock(&trace_cmdline_lock); | 819 | __raw_spin_unlock(&trace_cmdline_lock); |
820 | preempt_enable(); | ||
819 | } | 821 | } |
820 | 822 | ||
821 | void tracing_record_cmdline(struct task_struct *tsk) | 823 | void tracing_record_cmdline(struct task_struct *tsk) |