]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtlwifi: rtl8192cu: Fix kernel deadlock
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 24 Apr 2015 16:03:37 +0000 (11:03 -0500)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 10 Jun 2015 17:42:38 +0000 (13:42 -0400)
commit7cbece11c6b77acaf3421f8bf0d5684237c396c9
tree78c196f9d97d833c381c6bf336c94b2de6120f9b
parent7747ae24bbd0412325277e082e6dba6295ee9a11
rtlwifi: rtl8192cu: Fix kernel deadlock

[ Upstream commit 414b7e3b9ce8b0577f613e656fdbc36b34b444dd ]

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: Sasha Levin <sasha.levin@oracle.com>
drivers/net/wireless/rtlwifi/usb.c