bnx2x: Fix enabling network interfaces without VFs
PATCH 1/1 bnx2x: Fix enabling network interfaces without VFs
This function is called to enable SR-IOV when available, not enabling interfaces without VFs was a regression.
Fixes 65161c35554f ("bnx2x: Fix missing error code in bnx2x_iov_init_one()")
Signed-off-by Adrian Bunk <[email protected]>
Reported-by YunQiang Su <[email protected]>
Tested-by YunQiang Su <[email protected]>
--- drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c +1 -1
@@ -1224,7 +1224,7 @@ int bnx2x_iov_init_one(struct bnx2x *bp, int int_mode_param,/* SR-IOV capability was enabled but there are no VFs*/ if (iov->total ==0 ) { - err = -EINVAL ; + err =0 ; goto failed; }
Signature · 1 line
2.20.1