diff options
Diffstat (limited to 'drivers/net/niu.c')
-rw-r--r-- | drivers/net/niu.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index edac3a0b02d6..fa61a12c5e15 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/log2.h> | 22 | #include <linux/log2.h> |
23 | #include <linux/jiffies.h> | 23 | #include <linux/jiffies.h> |
24 | #include <linux/crc32.h> | 24 | #include <linux/crc32.h> |
25 | #include <linux/list.h> | ||
25 | 26 | ||
26 | #include <linux/io.h> | 27 | #include <linux/io.h> |
27 | 28 | ||
@@ -6362,6 +6363,7 @@ static void niu_set_rx_mode(struct net_device *dev) | |||
6362 | struct niu *np = netdev_priv(dev); | 6363 | struct niu *np = netdev_priv(dev); |
6363 | int i, alt_cnt, err; | 6364 | int i, alt_cnt, err; |
6364 | struct dev_addr_list *addr; | 6365 | struct dev_addr_list *addr; |
6366 | struct netdev_hw_addr *ha; | ||
6365 | unsigned long flags; | 6367 | unsigned long flags; |
6366 | u16 hash[16] = { 0, }; | 6368 | u16 hash[16] = { 0, }; |
6367 | 6369 | ||
@@ -6383,9 +6385,8 @@ static void niu_set_rx_mode(struct net_device *dev) | |||
6383 | if (alt_cnt) { | 6385 | if (alt_cnt) { |
6384 | int index = 0; | 6386 | int index = 0; |
6385 | 6387 | ||
6386 | for (addr = dev->uc_list; addr; addr = addr->next) { | 6388 | list_for_each_entry(ha, &dev->uc_list, list) { |
6387 | err = niu_set_alt_mac(np, index, | 6389 | err = niu_set_alt_mac(np, index, ha->addr); |
6388 | addr->da_addr); | ||
6389 | if (err) | 6390 | if (err) |
6390 | printk(KERN_WARNING PFX "%s: Error %d " | 6391 | printk(KERN_WARNING PFX "%s: Error %d " |
6391 | "adding alt mac %d\n", | 6392 | "adding alt mac %d\n", |