ar76c50x-usb: cancel promisc work during mac80211 stop
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 27 Jul 2009 18:56:23 +0000 (11:56 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Aug 2009 20:43:19 +0000 (16:43 -0400)
We weren't ever cancelling this.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Acked-by: Kalle Valo <kalle.valo@iki.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/at76c50x-usb.c

index 13303fa3473416e4a14d6a215bef81d68ec58a81..bbf5277aeef41ded3742b0c20169bae3c560584a 100644 (file)
@@ -1773,6 +1773,8 @@ static void at76_mac80211_stop(struct ieee80211_hw *hw)
 
        at76_dbg(DBG_MAC80211, "%s()", __func__);
 
+       cancel_work_sync(&priv->work_set_promisc);
+
        mutex_lock(&priv->mtx);
 
        if (!priv->device_unplugged) {