diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/trace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 032c57ca6502..6efd5cb3c252 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -592,7 +592,7 @@ static void | |||
592 | __update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu) | 592 | __update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu) |
593 | { | 593 | { |
594 | struct trace_array_cpu *data = tr->data[cpu]; | 594 | struct trace_array_cpu *data = tr->data[cpu]; |
595 | struct trace_array_cpu *max_data = tr->data[cpu]; | 595 | struct trace_array_cpu *max_data; |
596 | 596 | ||
597 | max_tr.cpu = cpu; | 597 | max_tr.cpu = cpu; |
598 | max_tr.time_start = data->preempt_timestamp; | 598 | max_tr.time_start = data->preempt_timestamp; |
@@ -602,7 +602,7 @@ __update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu) | |||
602 | max_data->critical_start = data->critical_start; | 602 | max_data->critical_start = data->critical_start; |
603 | max_data->critical_end = data->critical_end; | 603 | max_data->critical_end = data->critical_end; |
604 | 604 | ||
605 | memcpy(data->comm, tsk->comm, TASK_COMM_LEN); | 605 | memcpy(max_data->comm, tsk->comm, TASK_COMM_LEN); |
606 | max_data->pid = tsk->pid; | 606 | max_data->pid = tsk->pid; |
607 | max_data->uid = task_uid(tsk); | 607 | max_data->uid = task_uid(tsk); |
608 | max_data->nice = tsk->static_prio - 20 - MAX_RT_PRIO; | 608 | max_data->nice = tsk->static_prio - 20 - MAX_RT_PRIO; |