rtlwifi: rtl8192cu: Fix kernel deadlock
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 24 Apr 2015 16:03:37 +0000 (11:03 -0500)
committerJiri Slaby <jslaby@suse.cz>
Tue, 2 Jun 2015 11:41:24 +0000 (13:41 +0200)
commit8657b17804d605d79cfa0d5aff080f15e787fbc1
tree9d065697465fa2088d74a69ddc766407a6f3f276
parenta8484fc37ca4d536e5327c6fc9072e4be40ac014
rtlwifi: rtl8192cu: Fix kernel deadlock

commit 414b7e3b9ce8b0577f613e656fdbc36b34b444dd upstream.

The USB mini-driver in rtlwifi, which is used by rtl8192cu, issues a call to
usb_control_msg() with a timeout value of 0. In some instances where the
interface is shutting down, this infinite wait results in a CPU deadlock. A
one second timeout fixes this problem without affecting any normal operations.

This bug is reported at https://bugzilla.novell.com/show_bug.cgi?id=927786.

Reported-by: Bernhard Wiedemann <bwiedemann@suse.com>
Tested-by: Bernhard Wiedemann <bwiedemann@suse.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org>
Cc: Bernhard Wiedemann <bwiedemann@suse.com>
Cc: Takashi Iwai<tiwai@suse.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/wireless/rtlwifi/usb.c