summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c
diff options
context:
space:
mode:
authorPavel Skripkin <paskripkin@gmail.com>2021-11-14 01:36:36 +0300
committerDavid S. Miller <davem@davemloft.net>2021-11-15 13:28:49 +0000
commitf8885ac89ce310570e5391fe0bf0ec9c7c9b4fdc (patch)
tree30c03089c68719bf586e2cfa5b3f1ee0460f741c /drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c
parent2153bd1e3d3dbf6a3403572084ef6ed31c53c5f0 (diff)
net: bnx2x: fix variable dereferenced before check
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>
Diffstat (limited to 'drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c')
0 files changed, 0 insertions, 0 deletions