diff options
| author | Qianfeng Rong <rongqianfeng@vivo.com> | 2025-08-19 22:39:32 +0800 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2025-08-21 13:28:49 +0200 |
| commit | 2092b3b278be03f73a2438a9d14e2ac472eec033 (patch) | |
| tree | 74489aa499bbe4c13bf11b44090f58812938af82 /rust/helpers | |
| parent | b8dc2302544b66367bedec19ee16477ff5a25a92 (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 'rust/helpers')
0 files changed, 0 insertions, 0 deletions
