Skip to content

Commit 414b7e3

Browse files
lwfingerKalle Valo
authored andcommitted
rtlwifi: rtl8192cu: Fix kernel deadlock
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 <[email protected]> Tested-by: Bernhard Wiedemann <[email protected]> Signed-off-by: Larry Finger <[email protected]> Cc: Stable <[email protected]> Cc: Bernhard Wiedemann <[email protected]> Cc: Takashi Iwai<[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent 39376cc commit 414b7e3

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/rtlwifi

1 file changed

+1
-1
lines changed

drivers/net/wireless/rtlwifi/usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ static int _usbctrl_vendorreq_sync_read(struct usb_device *udev, u8 request,
126126

127127
do {
128128
status = usb_control_msg(udev, pipe, request, reqtype, value,
129-
index, pdata, len, 0); /*max. timeout*/
129+
index, pdata, len, 1000);
130130
if (status < 0) {
131131
/* firmware download is checksumed, don't retry */
132132
if ((value >= FW_8192C_START_ADDRESS &&

0 commit comments

Comments
 (0)