summaryrefslogtreecommitdiff
path: root/rust/helpers/xarray.c
diff options
context:
space:
mode:
authorQianfeng Rong <rongqianfeng@vivo.com>2025-08-19 22:39:33 +0800
committerLinus Walleij <linus.walleij@linaro.org>2025-08-21 13:28:49 +0200
commitae666486ee3baf97571df837ed8acd9e05d015bf (patch)
tree4e339b2f38c0659672fa838fddfe9f85ec5b4bfc /rust/helpers/xarray.c
parent2092b3b278be03f73a2438a9d14e2ac472eec033 (diff)
pinctrl: pinctrl-zynqmp: use kcalloc() instead of kzalloc()
Use devm_kcalloc() in versal_pinctrl_prepare_pin_desc() 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> Acked-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/20250819143935.372084-3-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