diff options
| author | 2014-02-19 21:53:35 +0000 | |
|---|---|---|
| committer | 2014-02-24 16:57:44 -0800 | |
| commit | e8152bfb51dbf8e3d2e6db3b3e540df6d634993b (patch) | |
| tree | 8c1d45ad7e17e2da5d4a52c06067c157fd1ac2ca | |
| parent | staging: vt6656: s_nsBulkOutIoCompleteWrite reorganise variable order. (diff) | |
staging: vt6656: s_nsBulkOutIoCompleteWrite add error handling,
change pContext->bBoolInUse to false on connection errors.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/vt6656/usbpipe.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index 16acc9a77e4e..61d822021209 100644 --- a/drivers/staging/vt6656/usbpipe.c +++ b/drivers/staging/vt6656/usbpipe.c @@ -616,6 +616,19 @@ static void s_nsBulkOutIoCompleteWrite(struct urb *urb) DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsBulkOutIoCompleteWrite\n"); + switch (urb->status) { + case 0: + case -ETIMEDOUT: + break; + case -ECONNRESET: + case -ENOENT: + case -ESHUTDOWN: + pContext->bBoolInUse = false; + return; + default: + break; + } + if (!netif_device_present(pDevice->dev)) return; |
