Commit 76dba1fe authored by Liao Yuanhong's avatar Liao Yuanhong Committed by Theodore Ts'o
Browse files

ext4: use kmalloc_array() for array space allocation



Replace kmalloc(size * sizeof) with kmalloc_array() for safer memory
allocation and overflow prevention.

Cc: stable@kernel.org
Signed-off-by: default avatarLiao Yuanhong <liaoyuanhong@vivo.com>
Link: https://patch.msgid.link/20250811125816.570142-1-liaoyuanhong@vivo.com


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 02c7f721
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment