net/mlx4_core: Fix the error flow when probing with invalid VF configuration
authorOr Gerlitz <ogerlitz@mellanox.com>
Sun, 22 Jun 2014 10:21:34 +0000 (13:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jun 2014 00:13:40 +0000 (17:13 -0700)
commit960b1f454e1ace6b76718f22828bcc3594a09422
treedb42d29b48582dc3816091e5086d1660a460d637
parent143fa2efea137d24baee3c5920fb7b0dacc09b6c
net/mlx4_core: Fix the error flow when probing with invalid VF configuration

Single ported VF are currently not supported on configurations where
one or both ports are IB. When we hit this case, the relevant flow in
the driver didn't return error and jumped to the wrong label. Fix that.

Fixes: dd41cc3 ('net/mlx4: Adapt num_vfs/probed_vf params for single port VF')
Reported-by: Shirley Ma <shirley.ma@oracle.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c