]> 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)
commit715874ca5ccaed9bcc0afb5c8114387d4e0bfeee
treedb42d29b48582dc3816091e5086d1660a460d637
parent99a51a12d89cc42da80e1edded5827bd2b6ab5fe
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: 97332b6 ('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