Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8152bfb authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman
Browse files

staging: vt6656: s_nsBulkOutIoCompleteWrite add error handling,



change pContext->bBoolInUse to false on connection errors.

Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1c398a38
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -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;