These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / staging / rtl8188eu / os_dep / usb_ops_linux.c
index 7e599bc..0fea338 100644 (file)
@@ -249,7 +249,10 @@ static int usbctrl_vendorreq(struct adapter *adapt, u8 request, u16 value, u16 i
                goto exit;
        }
 
-       _enter_critical_mutex(&dvobjpriv->usb_vendor_req_mutex, NULL);
+       if (mutex_lock_interruptible(&dvobjpriv->usb_vendor_req_mutex)) {
+               status = -ERESTARTSYS;
+               goto exit;
+       }
 
        /*  Acquire IO memory for vendorreq */
        pIo_buf = dvobjpriv->usb_vendor_req_buf;