diff options
authorLarry Finger <>2015-04-24 11:03:37 -0500
committerGreg Kroah-Hartman <>2015-06-06 08:19:39 -0700
commite3a9c25976f9ef1689f2e363ec8f3a3bdaa794d9 (patch)
parentdc82d264943e31b681c28c8398dc094635245bd2 (diff)
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 Reported-by: Bernhard Wiedemann <> Tested-by: Bernhard Wiedemann <> Signed-off-by: Larry Finger <> Cc: Bernhard Wiedemann <> Cc: Takashi Iwai<> Signed-off-by: Kalle Valo <> Signed-off-by: Greg Kroah-Hartman <>
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/usb.c b/drivers/net/wireless/rtlwifi/usb.c
index 4933f02ce1d5..bc409ec43563 100644
--- a/drivers/net/wireless/rtlwifi/usb.c
+++ b/drivers/net/wireless/rtlwifi/usb.c
@@ -126,7 +126,7 @@ static int _usbctrl_vendorreq_sync_read(struct usb_device *udev, u8 request,
do {
status = usb_control_msg(udev, pipe, request, reqtype, value,
- index, pdata, len, 0); /*max. timeout*/
+ index, pdata, len, 1000);
if (status < 0) {
/* firmware download is checksumed, don't retry */
if ((value >= FW_8192C_START_ADDRESS &&