Return-path: Received: from general-networks3.cust.sloane.cz ([88.146.176.14]:56092 "EHLO server.generalnetworks.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765451AbYBOU64 (ORCPT ); Fri, 15 Feb 2008 15:58:56 -0500 From: Jiri Slaby To: linville@tuxdriver.com Cc: , linux-wireless@vger.kernel.org, ath5k-devel@lists.ath5k.org, Jiri Slaby , Nick Kossifidis , "Luis R. Rodriguez" Subject: [PATCH 1/3] WDEV: ath5k, fix lock imbalance Date: Fri, 15 Feb 2008 21:58:51 +0100 Message-Id: <1203109133-32217-1-git-send-email-jirislaby@gmail.com> (sfid-20080215_205932_141437_73C61E1C) Sender: linux-wireless-owner@vger.kernel.org List-ID: Omitted lock causes sparse warning drivers/net/wireless/ath5k/base.c:1682:1: warning: context imbalance in 'ath5k_tasklet_rx' - different lock contexts for basic block Add the lock to the guilty fail path. Signed-off-by: Jiri Slaby Cc: Nick Kossifidis Cc: Luis R. Rodriguez --- drivers/net/wireless/ath5k/base.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c index ddc8714..49d38e8 100644 --- a/drivers/net/wireless/ath5k/base.c +++ b/drivers/net/wireless/ath5k/base.c @@ -1715,6 +1715,7 @@ ath5k_tasklet_rx(unsigned long data) break; else if (unlikely(ret)) { ATH5K_ERR(sc, "error in processing rx descriptor\n"); + spin_unlock(&sc->rxbuflock); return; } -- 1.5.3.8