diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-02-15 15:58:51 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-20 20:11:48 -0500 |
commit | 65872e6b434ca463123f7d03b530f143aabc6333 (patch) | |
tree | 5c18c438b1fa33e7b1d3a3e51b2bb23b4bd4be3b /drivers | |
parent | 387e100ac24a6c8f2b6f4ce572098447d2893008 (diff) |
WDEV: ath5k, fix lock imbalance
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 <jirislaby@gmail.com>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Cc: Luis R. Rodriguez <mcgrof@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | 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 dfdaec020739..062d004076a2 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) | |||
1715 | break; | 1715 | break; |
1716 | else if (unlikely(ret)) { | 1716 | else if (unlikely(ret)) { |
1717 | ATH5K_ERR(sc, "error in processing rx descriptor\n"); | 1717 | ATH5K_ERR(sc, "error in processing rx descriptor\n"); |
1718 | spin_unlock(&sc->rxbuflock); | ||
1718 | return; | 1719 | return; |
1719 | } | 1720 | } |
1720 | 1721 | ||