]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
rndis_wlan: check if set_multicast_list work is already scheduled
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Mon, 2 Jun 2008 15:35:36 +0000 (18:35 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Sat, 14 Jun 2008 16:18:01 +0000 (12:18 -0400)
Don't queue set_multicast_list work if WORK_SET_MULTICAST_LIST
flag already set.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rndis_wlan.c

index c281c0b35ed4de371b9cc47043913798688b5980..ad46a0ba6e649900ef954cd6d92610df5fdb2763 100644 (file)
@@ -2272,6 +2272,9 @@ static void rndis_wext_set_multicast_list(struct net_device *dev)
        struct usbnet *usbdev = dev->priv;
        struct rndis_wext_private *priv = get_rndis_wext_priv(usbdev);
 
+       if (test_bit(WORK_SET_MULTICAST_LIST, &priv->work_pending))
+               return;
+
        set_bit(WORK_SET_MULTICAST_LIST, &priv->work_pending);
        queue_work(priv->workqueue, &priv->work);
 }