Skip to contentSkip to conversation

staging: vt6656: s_nsInterruptUsbIoCompleteRead set intBuf.bInUse to true

PATCH In review Malcolm Priestley 1 participant 1 message Feb 17, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 staging: vt6656: s_nsInterruptUsbIoCompleteRead set intBuf.bInUse to true

intBuf.bInUse is set to false set back to true on successful usb_submit_urb

---
 drivers/staging/vt6656/usbpipe.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/staging/vt6656/usbpipe.c +6 -3
index 01cf099..258eec1 100644
@@ -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
Signature · 1 line
1.9.rc1