Commit a90d6f4a authored by Qianfeng Rong's avatar Qianfeng Rong Committed by Linus Walleij
Browse files

pinctrl: sunxi: use kcalloc() instead of kzalloc()



Use devm_kcalloc() in init_pins_table() and prepare_function_table() to
gain built-in overflow protection, making memory allocation safer when
calculating allocation size compared to explicit multiplication.

Signed-off-by: default avatarQianfeng Rong <rongqianfeng@vivo.com>
Acked-by: default avatarChen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/20250819143935.372084-5-rongqianfeng@vivo.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 42311ea5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment