OSDN Git Service

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)
committerTodd Kjos <tkjos@google.com>
Thu, 13 Dec 2018 18:24:43 +0000 (10:24 -0800)
commite623751cb9e3cdd98661e2412b8448a519b45689
tree4a736480b16da0e0de6e8ce3496462866dcfa370
parent8fc3f0196592efd0b96f9ea6a5ec7e3af93038f5
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