Skip to content

Commit

Permalink
ANDROID: Remove VLA from uid_sys_stats.c
Browse files Browse the repository at this point in the history
Remove one more VLA that was not caught.

Bug: 154930031
Change-Id: I2c6c1f6d5e6ef23769c117a47689e1539b85c882
Signed-off-by: Alistair Delva <adelva@google.com>
  • Loading branch information
adelva1984 authored and ananjaser1211 committed Aug 31, 2024
1 parent 127b055 commit 35e6223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/uid_sys_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 35e6223

Please sign in to comment.