brcmsmac: fix tx queue flush infinite loop
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 17 Jan 2012 11:38:50 +0000 (12:38 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 18 Jan 2012 19:38:05 +0000 (14:38 -0500)
commitf96b08a7e6f69c0f0a576554df3df5b1b519c479
tree6013abd195471946694eef64cbd927635e44182b
parent9446f3efc53512e5ad9e0966539021a2a41fe5a0
brcmsmac: fix tx queue flush infinite loop

This patch workaround live deadlock problem caused by infinite loop
in brcms_c_wait_for_tx_completion(). I do not consider the patch as
the proper fix, which should fix the real reason of tx queue flush
failure, but patch helps with system lockup.

Reference:
https://bugzilla.kernel.org/show_bug.cgi?id=42576

Reported-and-tested-by: Patrick <ragamuffin@datacomm.ch>
Cc: stable@vger.kernel.org # 3.2+
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/main.c