Skip to content

Commit

Permalink
net: net_failover: fix typo in net_failover_slave_register()
Browse files Browse the repository at this point in the history
Sync both unicast and multicast lists instead of unicast twice.

Fixes: cfc80d9 ("net: Introduce net_failover driver")
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Liran Alon authored and David S. Miller committed Jun 19, 2018
1 parent 548feb3 commit e522343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/net_failover.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ static int net_failover_slave_register(struct net_device *slave_dev,

netif_addr_lock_bh(failover_dev);
dev_uc_sync_multiple(slave_dev, failover_dev);
dev_uc_sync_multiple(slave_dev, failover_dev);
dev_mc_sync_multiple(slave_dev, failover_dev);
netif_addr_unlock_bh(failover_dev);

err = vlan_vids_add_by_dev(slave_dev, failover_dev);
Expand Down

0 comments on commit e522343

Please sign in to comment.