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

pinctrl: microchip-sgpio: use kcalloc() instead of kzalloc()



Use devm_kcalloc() in microchip_sgpio_register_bank() 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>
Link: https://lore.kernel.org/20250819143935.372084-2-rongqianfeng@vivo.com


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