summaryrefslogtreecommitdiff
path: root/rust/helpers/processor.c
diff options
context:
space:
mode:
authorSahil Chandna <chandna.linuxkernel@gmail.com>2025-09-26 13:20:53 +0530
committerAndrew Morton <akpm@linux-foundation.org>2025-09-28 11:36:14 -0700
commit94b3f02fb33f56c896d855ccbac270766d1aa48b (patch)
tree2716d983b0bf22f9154894d07ed09fefe38314c5 /rust/helpers/processor.c
parentcf1bb6b2d0f24c138ddaf3e8b8ecbf90273ed558 (diff)
kallsyms: use kmalloc_array() instead of kmalloc()
Replace kmalloc(sizeof(*stat) * 2, GFP_KERNEL) with kmalloc_array(2, sizeof(*stat), GFP_KERNEL) to prevent potential overflow, as recommended in Documentation/process/deprecated.rst. Link: https://lkml.kernel.org/r/20250926075053.25615-1-chandna.linuxkernel@gmail.com Signed-off-by: Sahil Chandna <chandna.linuxkernel@gmail.com> Cc: Shuah Khan <shuah@kernel.org> Cc: David Hunter <david.hunter.linux@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'rust/helpers/processor.c')
0 files changed, 0 insertions, 0 deletions