diff options
| author | Qianfeng Rong <rongqianfeng@vivo.com> | 2025-08-19 22:39:34 +0800 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2025-08-21 13:28:50 +0200 |
| commit | 42311ea58302d340339369a39eb84c6bfb703750 (patch) | |
| tree | e635f6b055aea4d39ba2b6877439771649e57f5e /rust/helpers/workqueue.c | |
| parent | ae666486ee3baf97571df837ed8acd9e05d015bf (diff) | |
pinctrl: qcom: sc8180x: use kcalloc() instead of kzalloc()
Use devm_kcalloc() in sc8180x_pinctrl_add_tile_resources() 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>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/20250819143935.372084-4-rongqianfeng@vivo.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions
