]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b4108f195b01d35eaaa408e232beeaf23bdf5f5
treedb42d29b48582dc3816091e5086d1660a460d637
parent6e8408a476552fc11dac7d4ddae61f8e8401dfef
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: 35aa946 ('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