]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Aug 2021 11:20:58 +0000 (13:20 +0200)
commit75cef4fc07d2f0ee733bb0a8e31497d36661ddbb
tree601efca7115261aa70f0ecc63b61d599024667af
parent437ee90d7b4f8acee94b93b42073dd405ce3e67e
bnx2x: fix an error code in bnx2x_nic_load()

[ Upstream commit fb653827c758725b149b5c924a5eb50ab4812750 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c