diff options
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_nic.c')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_nic.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c index 9f4cadf9f851..e95e8d09ff38 100644 --- a/drivers/infiniband/hw/nes/nes_nic.c +++ b/drivers/infiniband/hw/nes/nes_nic.c | |||
@@ -877,7 +877,7 @@ static void nes_netdev_set_multicast_list(struct net_device *netdev) | |||
877 | if (!mc_all_on) { | 877 | if (!mc_all_on) { |
878 | char *addrs; | 878 | char *addrs; |
879 | int i; | 879 | int i; |
880 | struct dev_mc_list *mcaddr; | 880 | struct netdev_hw_addr *ha; |
881 | 881 | ||
882 | addrs = kmalloc(ETH_ALEN * mc_count, GFP_ATOMIC); | 882 | addrs = kmalloc(ETH_ALEN * mc_count, GFP_ATOMIC); |
883 | if (!addrs) { | 883 | if (!addrs) { |
@@ -885,9 +885,8 @@ static void nes_netdev_set_multicast_list(struct net_device *netdev) | |||
885 | goto unlock; | 885 | goto unlock; |
886 | } | 886 | } |
887 | i = 0; | 887 | i = 0; |
888 | netdev_for_each_mc_addr(mcaddr, netdev) | 888 | netdev_for_each_mc_addr(ha, netdev) |
889 | memcpy(get_addr(addrs, i++), | 889 | memcpy(get_addr(addrs, i++), ha->addr, ETH_ALEN); |
890 | mcaddr->dmi_addr, ETH_ALEN); | ||
891 | 890 | ||
892 | perfect_filter_register_address = NES_IDX_PERFECT_FILTER_LOW + | 891 | perfect_filter_register_address = NES_IDX_PERFECT_FILTER_LOW + |
893 | pft_entries_preallocated * 0x8; | 892 | pft_entries_preallocated * 0x8; |