Re: [PATCH v2] qed/qed_dev: guard against a possible division by zero

From: patchwork-bot+netdevbpf
Date: Mon Mar 13 2023 - 20:10:29 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Thu, 9 Mar 2023 23:15:56 +0300 you wrote:
> Previously we would divide total_left_rate by zero if num_vports
> happened to be 1 because non_requested_count is calculated as
> num_vports - req_count. Guard against this by validating num_vports at
> the beginning and returning an error otherwise.
>
> Found by Linux Verification Center (linuxtesting.org) with the SVACE
> static analysis tool.
>
> [...]

Here is the summary with links:
- [v2] qed/qed_dev: guard against a possible division by zero
https://git.kernel.org/netdev/net/c/1a9dc5610ef8

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