From: Jussi Kivilinna Date: Mon, 2 Jun 2008 15:35:36 +0000 (+0300) Subject: rndis_wlan: check if set_multicast_list work is already scheduled X-Git-Tag: MMI-PSA29.97-13-9~33552^2~325^2~59 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a67edb9e31a328397516d2285269232e98c5f88b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git rndis_wlan: check if set_multicast_list work is already scheduled Don't queue set_multicast_list work if WORK_SET_MULTICAST_LIST flag already set. Signed-off-by: Jussi Kivilinna Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index c281c0b35ed4..ad46a0ba6e64 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c @@ -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); }