summaryrefslogtreecommitdiff
path: root/rust/helpers/xarray.c
diff options
context:
space:
mode:
authorQianfeng Rong <rongqianfeng@vivo.com>2025-08-19 22:39:32 +0800
committerLinus Walleij <linus.walleij@linaro.org>2025-08-21 13:28:49 +0200
commit2092b3b278be03f73a2438a9d14e2ac472eec033 (patch)
tree74489aa499bbe4c13bf11b44090f58812938af82 /rust/helpers/xarray.c
parentb8dc2302544b66367bedec19ee16477ff5a25a92 (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/xarray.c')
0 files changed, 0 insertions, 0 deletions