Re: [PATCH v3 net] net/mlx5: DR, prevent potential error pointer dereference

From: patchwork-bot+netdevbpf
Date: Fri Dec 06 2024 - 02:10:45 EST


Hello:

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

On Wed, 4 Dec 2024 15:06:41 +0300 you wrote:
> The dr_domain_add_vport_cap() function generally returns NULL on error
> but sometimes we want it to return ERR_PTR(-EBUSY) so the caller can
> retry. The problem here is that "ret" can be either -EBUSY or -ENOMEM
> and if it's and -ENOMEM then the error pointer is propogated back and
> eventually dereferenced in dr_ste_v0_build_src_gvmi_qpn_tag().
>
> Fixes: 11a45def2e19 ("net/mlx5: DR, Add support for SF vports")
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
>
> [...]

Here is the summary with links:
- [v3,net] net/mlx5: DR, prevent potential error pointer dereference
https://git.kernel.org/netdev/net/c/11776cff0b56

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