diff options
author | Qianfeng Rong <rongqianfeng@vivo.com> | 2025-08-25 22:27:52 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-08-26 17:12:35 -0700 |
commit | 7e484a97f6d5f9cfc524294917555cf87e765d9b (patch) | |
tree | ba03033c63dc3d650c43d998ff3e5b94aa7f3317 /drivers/devfreq/exynos-bus.c | |
parent | b4d5cd20507b252c746fa6971d82ac96f3b3e5b7 (diff) |
net: hns3: use kcalloc() instead of kzalloc()
As noted in the kernel documentation, open-coded multiplication in
allocator arguments is discouraged because it can lead to integer overflow.
Use devm_kcalloc() 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: Jijie Shao <shaojijie@huawei.com>
Link: https://patch.msgid.link/20250825142753.534509-1-rongqianfeng@vivo.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/devfreq/exynos-bus.c')
0 files changed, 0 insertions, 0 deletions