提交 65872e6b 编写于 作者: J Jiri Slaby 提交者: John W. Linville

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: NJiri Slaby <jirislaby@gmail.com>
Acked-by: NNick Kossifidis <mickflemm@gmail.com>
Cc: Luis R. Rodriguez <mcgrof@gmail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 387e100a
...@@ -1715,6 +1715,7 @@ ath5k_tasklet_rx(unsigned long data) ...@@ -1715,6 +1715,7 @@ ath5k_tasklet_rx(unsigned long data)
break; break;
else if (unlikely(ret)) { else if (unlikely(ret)) {
ATH5K_ERR(sc, "error in processing rx descriptor\n"); ATH5K_ERR(sc, "error in processing rx descriptor\n");
spin_unlock(&sc->rxbuflock);
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册