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 <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
210098a5e6
commit
247b4b68b1
1 changed files with 6 additions and 3 deletions
|
@ -400,9 +400,12 @@ static void s_nsInterruptUsbIoCompleteRead(struct urb *urb)
|
||||||
pDevice);
|
pDevice);
|
||||||
|
|
||||||
ntStatus = usb_submit_urb(pDevice->pInterruptURB, GFP_ATOMIC);
|
ntStatus = usb_submit_urb(pDevice->pInterruptURB, GFP_ATOMIC);
|
||||||
if (ntStatus != 0) {
|
if (ntStatus) {
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Submit int URB failed %d\n", 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
|
// We return STATUS_MORE_PROCESSING_REQUIRED so that the completion
|
||||||
|
|
Loading…
Add table
Reference in a new issue