1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 01:20:14 +00:00
Sahil Chandna 94b3f02fb3 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>
2025-09-28 11:36:14 -07:00
..
2025-07-30 17:14:01 -07:00
2025-07-30 19:26:49 -07:00
2025-07-31 16:52:32 -07:00
2025-08-23 10:11:34 -04:00
2025-06-13 17:26:17 +08:00
2025-07-29 21:43:08 -07:00
2025-02-12 12:12:27 +01:00
2025-03-24 09:52:37 -07:00
2025-07-31 15:40:22 -07:00