Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279009
b: refs/heads/master
c: 0e03567
h: refs/heads/master
i:
  279007: 47bcdd3
v: v3
  • Loading branch information
Alexander Guller authored and David S. Miller committed Dec 19, 2011
1 parent fa4b875 commit 8d8f30f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8d0fc7b61191c9433a4f738987b89e1d962eb637
refs/heads/master: 0e03567a2c2542e142d5ab6c8bcbf6373a241afe
2 changes: 2 additions & 0 deletions trunk/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ static void mlx4_en_clear_list(struct net_device *dev)
struct mlx4_en_priv *priv = netdev_priv(dev);

kfree(priv->mc_addrs);
priv->mc_addrs = NULL;
priv->mc_addrs_cnt = 0;
}

Expand All @@ -170,6 +171,7 @@ static void mlx4_en_cache_mclist(struct net_device *dev)
i = 0;
netdev_for_each_mc_addr(ha, dev)
memcpy(mc_addrs + i++ * ETH_ALEN, ha->addr, ETH_ALEN);
mlx4_en_clear_list(dev);
priv->mc_addrs = mc_addrs;
priv->mc_addrs_cnt = mc_addrs_cnt;
}
Expand Down

0 comments on commit 8d8f30f

Please sign in to comment.