diff options
| author | 2025-08-25 22:27:52 +0800 | |
|---|---|---|
| committer | 2025-08-26 17:12:35 -0700 | |
| commit | 7e484a97f6d5f9cfc524294917555cf87e765d9b (patch) | |
| tree | ba03033c63dc3d650c43d998ff3e5b94aa7f3317 /scripts/Makefile.thinlto | |
| parent | net: phy: as21xxx: better handle PHY HW reset on soft-reboot (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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
