]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: fix a double spin_unlock_irqrestore issue in dpc
authorFranky Lin <frankyl@broadcom.com>
Mon, 30 Apr 2012 18:43:07 +0000 (11:43 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 2 May 2012 18:02:03 +0000 (14:02 -0400)
commit875e1a85f4fac6591b2f3d8ca2b892dc0811229e
tree782655506b6a999b0f57c41bbb7ef6375716dd31
parentd7691ca80d192ef8c3bf7049da80b0509bab3169
brcmfmac: fix a double spin_unlock_irqrestore issue in dpc

dpc_tl_lock is not acquired in the error handle code for bus down.
But it's unlocked using spin_unlock_irqrestore after finishing task
list walk down. Grab the lock before breaking the loop to avoid a
double unlock.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c