提交 c98fbf90 编写于 作者: M Malcolm Priestley 提交者: Greg Kroah-Hartman

staging: vt6656: s_nsInterruptUsbIoCompleteRead add urb status returns

Drop out of urb return on usb errors and set intBuf.bInUse to false.
Signed-off-by: NMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 247b4b68
...@@ -364,6 +364,19 @@ static void s_nsInterruptUsbIoCompleteRead(struct urb *urb) ...@@ -364,6 +364,19 @@ static void s_nsInterruptUsbIoCompleteRead(struct urb *urb)
// 4) The irp was cancelled. // 4) The irp was cancelled.
// 5) Some other failure from the USB device object. // 5) Some other failure from the USB device object.
// //
switch (urb->status) {
case 0:
case -ETIMEDOUT:
break;
case -ECONNRESET:
case -ENOENT:
case -ESHUTDOWN:
pDevice->intBuf.bInUse = false;
return;
default:
break;
}
ntStatus = urb->status; ntStatus = urb->status;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"s_nsInterruptUsbIoCompleteRead Status %d\n", ntStatus); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"s_nsInterruptUsbIoCompleteRead Status %d\n", ntStatus);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册