From patchwork Thu Jan 27 09:15:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Natarajan X-Patchwork-Id: 510901 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0R9FXCm002047 for ; Thu, 27 Jan 2011 09:15:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753891Ab1A0JPs (ORCPT ); Thu, 27 Jan 2011 04:15:48 -0500 Received: from mail.atheros.com ([12.19.149.2]:10258 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753802Ab1A0JPr (ORCPT ); Thu, 27 Jan 2011 04:15:47 -0500 Received: from mail.atheros.com ([10.10.20.108]) by sidewinder.atheros.com for ; Thu, 27 Jan 2011 01:15:28 -0800 Received: from smtp.atheros.com (10.12.4.8) by SC1EXHC-02.global.atheros.com (10.10.20.106) with Microsoft SMTP Server (TLS) id 8.2.213.0; Thu, 27 Jan 2011 01:15:46 -0800 Received: by smtp.atheros.com (sSMTP sendmail emulation); Thu, 27 Jan 2011 14:45:40 +0530 From: Vivek Natarajan To: CC: , Vivek Natarajan Subject: [PATCH 4/5] ath9k: Fix a locking related issue. Date: Thu, 27 Jan 2011 14:45:10 +0530 Message-ID: <1296119711-4024-4-git-send-email-vnatarajan@atheros.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1296119711-4024-3-git-send-email-vnatarajan@atheros.com> References: <1296119711-4024-1-git-send-email-vnatarajan@atheros.com> <1296119711-4024-2-git-send-email-vnatarajan@atheros.com> <1296119711-4024-3-git-send-email-vnatarajan@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 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 27 Jan 2011 09:15:50 +0000 (UTC) diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index c73452d..84673fb 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c @@ -564,8 +564,11 @@ static void ath_tx_complete_aggr(struct ath_softc *sc, struct ath_txq *txq, rcu_read_unlock(); - if (needreset) + if (needreset) { + spin_unlock_bh(&sc->sc_pcu_lock); ath_reset(sc, false); + spin_lock_bh(&sc->sc_pcu_lock); + } } static u32 ath_lookup_rate(struct ath_softc *sc, struct ath_buf *bf,