Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 2008 12:24:43 GMT
From:      Weongyo Jeong <weongyo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 154785 for review
Message-ID:  <200812161224.mBGCOhQ7052439@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=154785

Change 154785 by weongyo@weongyo_ws on 2008/12/16 12:24:28

	it's better to return USBD_STATUS_XACT_ERROR when we encounter I/O
	errors because Windows's doing as like this if SURPRISE_REMOVAL is
	happened.  USBD_STATUS_DEVICE_GONE looks strictly.

Affected files ...

.. //depot/projects/ndisusb/sys/compat/ndis/subr_usbd.c#23 edit

Differences ...

==== //depot/projects/ndisusb/sys/compat/ndis/subr_usbd.c#23 (text+ko) ====

@@ -282,7 +282,7 @@
 	case USBD_SHORT_XFER:
 		return (USBD_STATUS_ERROR_SHORT_TRANSFER);
 	case USBD_IOERROR:
-		return (USBD_STATUS_DEVICE_GONE);
+		return (USBD_STATUS_XACT_ERROR);
 	case USBD_NOMEM:
 		return (USBD_STATUS_NO_MEMORY);
 	case USBD_INVAL:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812161224.mBGCOhQ7052439>