From a531490d004e1245cb390a72b1f5b37b6451f563 Mon Sep 17 00:00:00 2001 From: Alistair Delva Date: Fri, 24 Apr 2020 10:02:48 -0700 Subject: [PATCH] ANDROID: Remove VLA from uid_sys_stats.c Remove one more VLA that was not caught. Bug: 154930031 Change-Id: I2c6c1f6d5e6ef23769c117a47689e1539b85c882 Signed-off-by: Alistair Delva --- drivers/misc/uid_sys_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/uid_sys_stats.c b/drivers/misc/uid_sys_stats.c index f6a6a3e1344e..cb027ed1f8c3 100644 --- a/drivers/misc/uid_sys_stats.c +++ b/drivers/misc/uid_sys_stats.c @@ -126,7 +126,7 @@ static void get_full_task_comm(struct task_entry *task_entry, int i = 0, offset = 0, len = 0; /* save one byte for terminating null character */ int unused_len = MAX_TASK_COMM_LEN - TASK_COMM_LEN - 1; - char buf[unused_len]; + char buf[MAX_TASK_COMM_LEN - TASK_COMM_LEN - 1]; struct mm_struct *mm = task->mm; /* fill the first TASK_COMM_LEN bytes with thread name */