Messages in this thread Patch in this message | | | From | John Stultz <> | Subject | [PATCH 2/3] comm: timerstats: Protect task->comm access by using get_task_comm() | Date | Wed, 27 Apr 2011 21:03:30 -0700 |
| |
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(-)
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; } -- 1.7.3.2.146.gca209
| |