diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2013-11-03 10:04:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-20 12:27:46 -0800 |
commit | 5bf906573cbe62fb4b4bb61db5086e62c62d9b2a (patch) | |
tree | c6ac9d93d1289530bc3144f3947ce8fa7a59cd48 | |
parent | 666a76c79fc23fef31fb870193053464148ba488 (diff) | |
download | linux-stable-5bf906573cbe62fb4b4bb61db5086e62c62d9b2a.tar.gz linux-stable-5bf906573cbe62fb4b4bb61db5086e62c62d9b2a.tar.bz2 linux-stable-5bf906573cbe62fb4b4bb61db5086e62c62d9b2a.zip |
net/mlx4_core: Fix call to __mlx4_unregister_mac
[ Upstream commit c32b7dfbb1dfb3f0a68f250deff65103c8bb704a ]
In function mlx4_master_deactivate_admin_state() __mlx4_unregister_mac was
called using the MAC index. It should be called with the value of the MAC itself.
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/cmd.c b/drivers/net/ethernet/mellanox/mlx4/cmd.c index 0e572a527154..28d706bd12eb 100644 --- a/drivers/net/ethernet/mellanox/mlx4/cmd.c +++ b/drivers/net/ethernet/mellanox/mlx4/cmd.c @@ -1544,7 +1544,7 @@ static void mlx4_master_deactivate_admin_state(struct mlx4_priv *priv, int slave vp_oper->vlan_idx = NO_INDX; } if (NO_INDX != vp_oper->mac_idx) { - __mlx4_unregister_mac(&priv->dev, port, vp_oper->mac_idx); + __mlx4_unregister_mac(&priv->dev, port, vp_oper->state.mac); vp_oper->mac_idx = NO_INDX; } } |