diff mbox

[1/2] ar76c50x-usb: cancel promisc work during mac80211 stop

Message ID 1248720984-15922-2-git-send-email-lrodriguez@atheros.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Luis Rodriguez July 27, 2009, 6:56 p.m. UTC
We weren't ever cancelling this.

Cc: Kalle Valo <kalle.valo@iki.fi>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
---
 drivers/net/wireless/at76c50x-usb.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Comments

Kalle Valo July 29, 2009, 5:39 a.m. UTC | #1
"Luis R. Rodriguez" <lrodriguez@Atheros.com> writes:

> We weren't ever cancelling this.
>
> Cc: Kalle Valo <kalle.valo@iki.fi>
> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>

Thanks.

Acked-by: Kalle Valo <kalle.valo@iki.fi>
diff mbox

Patch

diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c
index 13303fa..bbf5277 100644
--- a/drivers/net/wireless/at76c50x-usb.c
+++ b/drivers/net/wireless/at76c50x-usb.c
@@ -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) {