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

pinctrl: qcom: sc8180x: use kcalloc() instead of kzalloc()



Use devm_kcalloc() in sc8180x_pinctrl_add_tile_resources() 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>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/20250819143935.372084-4-rongqianfeng@vivo.com


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