ANDROID: uid_sys_stats: Copy task_struct comm field to bigger buffer
authorDmitry Shmidt <dimitrysh@google.com>
Wed, 7 Mar 2018 22:11:03 +0000 (14:11 -0800)
committerDmitry Shmidt <dimitrysh@google.com>
Wed, 7 Mar 2018 22:18:02 +0000 (14:18 -0800)
commit3253a29a4d7c70450b4ed7b4dda0e788641025a5
treef0698451fbe39142bfa98f21dedf6eba7d647576
parent4729ec3da9fc11aa0b43abec5c6ddfabc6c8edd1
ANDROID: uid_sys_stats: Copy task_struct comm field to bigger buffer

get_task_comm() currently checks if buf_size != TASK_COMM_LEN
and fails even if sizeof(buf) > TASK_COMM_LEN.

Change-Id: Icb3e9c172607534ef1db10baf5d626083db73498
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/misc/uid_sys_stats.c