staging: vt6656: PIPEnsInterruptRead set intBuf.bInUse to false.
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 19 Feb 2014 18:36:37 +0000 (18:36 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Feb 2014 00:54:53 +0000 (16:54 -0800)
set intBuf.bInUse to false on return error.

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

index 845a8a12a3e44418936a0b8d808f87771d7a8245..1a0b436020a65a49d248b685716e2fdbed16bf47 100644 (file)
@@ -323,9 +323,11 @@ int PIPEnsInterruptRead(struct vnt_private *pDevice)
                pDevice->int_interval);
 
        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);
+               pDevice->intBuf.bInUse = false;
+       }
 
     DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"<----s_nsStartInterruptUsbRead Return(%x)\n",ntStatus);
     return ntStatus;