[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<175625401549.147674.14126794394593538938.git-patchwork-notify@kernel.org>
Date: Wed, 27 Aug 2025 00:20:15 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Qianfeng Rong <rongqianfeng@...o.com>
Cc: shenjian15@...wei.com, salil.mehta@...wei.com, shaojijie@...wei.com,
andrew+netdev@...n.ch, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: hns3: use kcalloc() instead of kzalloc()
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@...nel.org>:
On Mon, 25 Aug 2025 22:27:52 +0800 you wrote:
> As noted in the kernel documentation [1], 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.
>
> [...]
Here is the summary with links:
- net: hns3: use kcalloc() instead of kzalloc()
https://git.kernel.org/netdev/net-next/c/7e484a97f6d5
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists