From: Malcolm Priestley Date: Mon, 17 Feb 2014 21:12:51 +0000 (+0000) Subject: staging: vt6656: s_nsInterruptUsbIoCompleteRead set intBuf.bInUse to true X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=247b4b68b1cb65a2c2051f34415b455020fa8c10;p=linux-beck.git staging: vt6656: s_nsInterruptUsbIoCompleteRead set intBuf.bInUse to true intBuf.bInUse is set to false set back to true on successful usb_submit_urb Signed-off-by: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index 01cf09999b6d..258eec13b8df 100644 --- a/drivers/staging/vt6656/usbpipe.c +++ b/drivers/staging/vt6656/usbpipe.c @@ -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