Re: [PATCH net v2] tcp: fix division by zero in tcp_cong_avoid_ai()

From: patchwork-bot+netdevbpf

Date: Fri Dec 04 2026 - 06:20:18 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Thu, 26 Nov 2026 22:11:50 +0530 you wrote:
> From: Mohammad Shahid <mdshahid03@xxxxxxxxx>
>
> The tcp_cong_avoid_ai() function divides tp->snd_cwnd_cnt by
> the argument w without checking whether w is zero.
>
> Since w is an unsigned value, the condition tp->snd_cwnd_cnt
> >= w does not prevent division by zero when w is zero.
>
> [...]

Here is the summary with links:
- [net,v2] tcp: fix division by zero in tcp_cong_avoid_ai()
https://git.kernel.org/netdev/net/c/19727ac1afda

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html