Message ID | 1303963411-2064-3-git-send-email-john.stultz@linaro.org |
---|---|
State | Rejected |
Headers | show |
diff --git a/kernel/timer.c b/kernel/timer.c index fd61986..85308fb 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -379,7 +379,7 @@ void __timer_stats_timer_set_start_info(struct timer_list *timer, void *addr) return; timer->start_site = addr; - memcpy(timer->start_comm, current->comm, TASK_COMM_LEN); + get_task_comm(timer->start_comm, current); timer->start_pid = current->pid; }
Converts the timerstats code to use get_task_comm for protected comm access. CC: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> CC: David Rientjes <rientjes@google.com> CC: Dave Hansen <dave@linux.vnet.ibm.com> CC: Andrew Morton <akpm@linux-foundation.org> CC: linux-mm@kvack.org Signed-off-by: John Stultz <john.stultz@linaro.org> --- kernel/timer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)