Skip to contentSkip to conversation

staging: vt6656: PIPEnsInterruptRead set intBuf.bInUse to false.

PATCH New Malcolm Priestley 1 participant 1 message Feb 19, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 staging: vt6656: PIPEnsInterruptRead set intBuf.bInUse to false.

set intBuf.bInUse to false on return error.

---
 drivers/staging/vt6656/usbpipe.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/staging/vt6656/usbpipe.c +5 -3
index 845a8a1..1a0b436 100644
@@ -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;
Signature · 1 line
1.9.rc1