diff options
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r-- | drivers/net/wireless/libertas/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index abd6d9ed8f4b..42e9b2771eab 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c | |||
@@ -594,6 +594,7 @@ static int lbs_add_mcast_addrs(struct cmd_ds_mac_multicast_adr *cmd, | |||
594 | return nr_addrs; | 594 | return nr_addrs; |
595 | 595 | ||
596 | netif_tx_lock_bh(dev); | 596 | netif_tx_lock_bh(dev); |
597 | netif_addr_lock(dev); | ||
597 | for (mc_list = dev->mc_list; mc_list; mc_list = mc_list->next) { | 598 | for (mc_list = dev->mc_list; mc_list; mc_list = mc_list->next) { |
598 | if (mac_in_list(cmd->maclist, nr_addrs, mc_list->dmi_addr)) { | 599 | if (mac_in_list(cmd->maclist, nr_addrs, mc_list->dmi_addr)) { |
599 | lbs_deb_net("mcast address %s:%s skipped\n", dev->name, | 600 | lbs_deb_net("mcast address %s:%s skipped\n", dev->name, |
@@ -608,6 +609,7 @@ static int lbs_add_mcast_addrs(struct cmd_ds_mac_multicast_adr *cmd, | |||
608 | print_mac(mac, mc_list->dmi_addr)); | 609 | print_mac(mac, mc_list->dmi_addr)); |
609 | i++; | 610 | i++; |
610 | } | 611 | } |
612 | netif_addr_unlock(dev); | ||
611 | netif_tx_unlock_bh(dev); | 613 | netif_tx_unlock_bh(dev); |
612 | if (mc_list) | 614 | if (mc_list) |
613 | return -EOVERFLOW; | 615 | return -EOVERFLOW; |