From patchwork Mon Jul 27 18:56:23 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Rodriguez X-Patchwork-Id: 37610 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6RIuWv8019461 for ; Mon, 27 Jul 2009 18:56:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751451AbZG0S43 (ORCPT ); Mon, 27 Jul 2009 14:56:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751307AbZG0S43 (ORCPT ); Mon, 27 Jul 2009 14:56:29 -0400 Received: from mail.atheros.com ([12.36.123.2]:31578 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750737AbZG0S42 (ORCPT ); Mon, 27 Jul 2009 14:56:28 -0400 Received: from mail.atheros.com ([10.10.20.105]) by sidewinder.atheros.com for ; Mon, 27 Jul 2009 11:56:29 -0700 Received: from smtp.atheros.com (10.10.18.125) by SC1EXHC-01.global.atheros.com (10.10.20.106) with Microsoft SMTP Server (TLS) id 8.0.751.0; Mon, 27 Jul 2009 11:56:28 -0700 Received: by smtp.atheros.com (sSMTP sendmail emulation); Mon, 27 Jul 2009 11:56:28 -0700 From: "Luis R. Rodriguez" To: CC: , "Luis R. Rodriguez" , Kalle Valo Subject: [PATCH 1/2] ar76c50x-usb: cancel promisc work during mac80211 stop Date: Mon, 27 Jul 2009 11:56:23 -0700 Message-ID: <1248720984-15922-2-git-send-email-lrodriguez@atheros.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1248720984-15922-1-git-send-email-lrodriguez@atheros.com> References: <1248720984-15922-1-git-send-email-lrodriguez@atheros.com> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org We weren't ever cancelling this. Cc: Kalle Valo Signed-off-by: Luis R. Rodriguez Acked-by: Kalle Valo --- drivers/net/wireless/at76c50x-usb.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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) {