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)
commitbbbf4f42f59e9e1412239102d055bcc1c5f54eaf
tree155384e3951d992aea3579206eb3c0083db205d3
parent3956b4a2ddb04524aa4a1c59fb1c2db8ac60f9ea
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