PERFORCE change 154785 for review

Weongyo Jeong weongyo at FreeBSD.org
Tue Dec 16 04:24:43 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=154785

Change 154785 by weongyo at 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:


More information about the p4-projects mailing list