Re: [PATCH v2] qed: fix possible uninit pointer read in qed_mcp_nvm_info_populate()

From: patchwork-bot+netdevbpf
Date: Tue Dec 17 2024 - 09:20:37 EST


Hello:

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

On Sun, 15 Dec 2024 02:17:34 +0100 you wrote:
> Coverity reports an uninit pointer read in qed_mcp_nvm_info_populate().
> If EOPNOTSUPP is returned from qed_mcp_bist_nvm_get_num_images() ensure
> nvm_info.num_images is set to 0 to avoid possible uninit assignment
> to p_hwfn->nvm_info.image_att later on in out label.
>
> Closes: https://scan5.scan.coverity.com/#/project-view/63204/10063?selectedIssue=1636666
> Suggested-by: Simon Horman <horms@xxxxxxxxxx>
> Signed-off-by: Gianfranco Trad <gianf.trad@xxxxxxxxx>
>
> [...]

Here is the summary with links:
- [v2] qed: fix possible uninit pointer read in qed_mcp_nvm_info_populate()
https://git.kernel.org/netdev/net/c/7ed2d9158877

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