]> git.baikalelectronics.ru Git - kernel.git/commit
staging: brcm80211: fix thread blocking issue in brcmf_sdbrcm_bus_stop()
authorArend van Spriel <arend@broadcom.com>
Wed, 5 Oct 2011 13:20:06 +0000 (15:20 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 5 Oct 2011 20:42:50 +0000 (13:42 -0700)
commit081a5555aac8fc312e8e686d6f2e44add82b61ad
tree155384e3951d992aea3579206eb3c0083db205d3
parente92ebbac3b09e884d2889bf32d134d7be753077b
staging: brcm80211: fix thread blocking issue in brcmf_sdbrcm_bus_stop()

The function brcmf_sdbrcm_bus_stop() terminates the watchdog and dpc
thread, but this function can be called from the dpc thread itself.
Stopping the dpc thread is only done when it is not the 'current'
thread.

Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmfmac/dhd_sdio.c