commit | 8342f746d59bdff0b961aff0b5b4c01cf9711dca | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Aug 05 13:38:26 2021 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun Aug 15 13:01:01 2021 +0200 |
tree | fe579412dfec1012641831de5597faab5ca29ed0 | |
parent | 6ce348310d9443b53a42c8c29de8714ca2d845f5 [diff] |
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>