aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/en_netdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
index 887cf01d831d..82708bd5c339 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
+++ b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
@@ -644,6 +644,7 @@ static int mlx4_en_get_qp(struct mlx4_en_priv *priv)
644 goto alloc_err; 644 goto alloc_err;
645 } 645 }
646 memcpy(entry->mac, priv->dev->dev_addr, sizeof(entry->mac)); 646 memcpy(entry->mac, priv->dev->dev_addr, sizeof(entry->mac));
647 memcpy(priv->current_mac, entry->mac, sizeof(priv->current_mac));
647 entry->reg_id = reg_id; 648 entry->reg_id = reg_id;
648 649
649 hlist_add_head_rcu(&entry->hlist, 650 hlist_add_head_rcu(&entry->hlist,