diff options
| author | Qianfeng Rong <rongqianfeng@vivo.com> | 2025-08-19 22:39:33 +0800 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2025-08-21 13:28:49 +0200 |
| commit | ae666486ee3baf97571df837ed8acd9e05d015bf (patch) | |
| tree | 4e339b2f38c0659672fa838fddfe9f85ec5b4bfc /rust/helpers/xarray.c | |
| parent | 2092b3b278be03f73a2438a9d14e2ac472eec033 (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
