brcmsmac: fix tx queue flush infinite loop
commit4bc34a5c5c4e8015f24c97da3876374e5a610e79
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 17 Jan 2012 11:38:50 +0000 (17 12:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:21:31 +0000 (3 09:21 -0800)
tree0412ab7e37e3ca9b66df804997b37ac037746d51
parent7f7158eb11fafcac8a2a50235366c6ffc9c62cf7
brcmsmac: fix tx queue flush infinite loop

commit f96b08a7e6f69c0f0a576554df3df5b1b519c479 upstream.

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>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/brcm80211/brcmsmac/main.c