Re: [PATCH] net: bnx2x: fix variable dereferenced before check

From: patchwork-bot+netdevbpf
Date: Mon Nov 15 2021 - 08:31:40 EST


Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Sun, 14 Nov 2021 01:36:36 +0300 you wrote:
> Smatch says:
> bnx2x_init_ops.h:640 bnx2x_ilt_client_mem_op()
> warn: variable dereferenced before check 'ilt' (see line 638)
>
> Move ilt_cli variable initialization _after_ ilt validation, because
> it's unsafe to deref the pointer before validation check.
>
> [...]

Here is the summary with links:
- net: bnx2x: fix variable dereferenced before check
https://git.kernel.org/netdev/net/c/f8885ac89ce3

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