From: Malcolm Priestley Date: Wed, 19 Feb 2014 18:36:37 +0000 (+0000) Subject: staging: vt6656: PIPEnsInterruptRead set intBuf.bInUse to false. X-Git-Tag: v3.15-rc1~139^2~885 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=59858f5e91da4826102f5931a7302529e09dbb10;p=platform%2Fkernel%2Flinux-exynos.git staging: vt6656: PIPEnsInterruptRead set intBuf.bInUse to false. set intBuf.bInUse to false on return error. 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 845a8a1..1a0b436 100644 --- a/drivers/staging/vt6656/usbpipe.c +++ b/drivers/staging/vt6656/usbpipe.c @@ -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;