]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: fix an error code in bnx2x_nic_load()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 5 Aug 2021 10:38:26 +0000 (13:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Aug 2021 12:32:10 +0000 (13:32 +0100)
commitfb653827c758725b149b5c924a5eb50ab4812750
treedb15aa9d154472127baf9ddb3a2ace0e23fa6500
parentafa00d3f5800a83228311636fc69fd28fb7af205
bnx2x: fix an error code in bnx2x_nic_load()

Set the error code if bnx2x_alloc_fw_stats_mem() fails.  The current
code returns success.

Fixes: ad5afc89365e ("bnx2x: Separate VF and PF logic")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c