diff options
| author | Qianfeng Rong <rongqianfeng@vivo.com> | 2025-08-19 22:39:35 +0800 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2025-08-21 13:28:50 +0200 |
| commit | a90d6f4aa0bb1dabae4be04955938c86ad7d3489 (patch) | |
| tree | 3835a85c9f383ff3bc961a6d8c15e8f64af62ea5 /rust/helpers/xarray.c | |
| parent | 42311ea58302d340339369a39eb84c6bfb703750 (diff) | |
pinctrl: sunxi: use kcalloc() instead of kzalloc()
Use devm_kcalloc() in init_pins_table() and prepare_function_table() 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: Chen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/20250819143935.372084-5-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
