diff options
| author | Pavel Skripkin <paskripkin@gmail.com> | 2021-11-14 01:36:36 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-26 11:58:43 +0100 |
| commit | 76fa5601f04a1cf0f2ff20e6cca129cc55c1a587 (patch) | |
| tree | 396e6e21c9c08c097fa9e84b9bc708d2c3d666bd /include/linux/root_dev.h | |
| parent | 26efb10b1e2224af9b40f2a6917fbb53e4bd1387 (diff) | |
net: bnx2x: fix variable dereferenced before check
[ Upstream commit f8885ac89ce310570e5391fe0bf0ec9c7c9b4fdc ]
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.
Fixes: 523224a3b3cd ("bnx2x, cnic, bnx2i: use new FW/HSI")
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/root_dev.h')
0 files changed, 0 insertions, 0 deletions
