diff options
| author | 2025-08-19 22:39:32 +0800 | |
|---|---|---|
| committer | 2025-08-21 13:28:49 +0200 | |
| commit | 2092b3b278be03f73a2438a9d14e2ac472eec033 (patch) | |
| tree | 74489aa499bbe4c13bf11b44090f58812938af82 /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | pinctrl: stm32: Constify static 'pinctrl_desc' (diff) | |
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: Qianfeng Rong <rongqianfeng@vivo.com>
Link: https://lore.kernel.org/20250819143935.372084-2-rongqianfeng@vivo.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
