]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
staging: vt6656: s_nsInterruptUsbIoCompleteRead set intBuf.bInUse to true
authorMalcolm Priestley <tvboxspy@gmail.com>
Mon, 17 Feb 2014 21:12:51 +0000 (21:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Feb 2014 19:01:01 +0000 (11:01 -0800)
intBuf.bInUse is set to false set back to true on successful usb_submit_urb

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/usbpipe.c

index 01cf09999b6dde31a488c24506f343f57d0b74bf..258eec13b8dfdebe583f8ba156d7867311408f5e 100644 (file)
@@ -400,9 +400,12 @@ static void s_nsInterruptUsbIoCompleteRead(struct urb *urb)
                     pDevice);
 
        ntStatus = usb_submit_urb(pDevice->pInterruptURB, GFP_ATOMIC);
-       if (ntStatus != 0) {
-           DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Submit int URB failed %d\n", ntStatus);
-           }
+       if (ntStatus) {
+               DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
+                       "Submit int URB failed %d\n", ntStatus);
+       } else {
+               pDevice->intBuf.bInUse = true;
+       }
     }
     //
     // We return STATUS_MORE_PROCESSING_REQUIRED so that the completion