Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Dec 2008 11:48:57 GMT
From:      Weongyo Jeong <weongyo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 154926 for review
Message-ID:  <200812181148.mBIBmvXv026717@repoman.freebsd.org>

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

Change 154926 by weongyo@weongyo_ws on 2008/12/18 11:48:21

	it's better to return STATUS_DEVICE_NOT_CONNECTED as IRP status code
	if URB status is USBD_STATUS_DEVICE_GONE.

Affected files ...

.. //depot/projects/ndisusb/sys/compat/ndis/ntoskrnl_var.h#5 edit
.. //depot/projects/ndisusb/sys/compat/ndis/subr_usbd.c#26 edit

Differences ...

==== //depot/projects/ndisusb/sys/compat/ndis/ntoskrnl_var.h#5 (text+ko) ====

@@ -1222,6 +1222,7 @@
 #define STATUS_NOT_SUPPORTED		0xC00000BB
 #define STATUS_INVALID_PARAMETER_2	0xC00000F0
 #define STATUS_INSUFFICIENT_RESOURCES	0xC000009A
+#define	STATUS_DEVICE_NOT_CONNECTED	0xC000009D
 #define STATUS_CANCELLED		0xC0000120
 #define STATUS_NOT_FOUND		0xC0000225
 #define STATUS_DEVICE_REMOVED		0xC00002B6

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

@@ -251,7 +251,7 @@
 	case USBD_STATUS_SUCCESS:
 		return (STATUS_SUCCESS);
 	case USBD_STATUS_DEVICE_GONE:
-		return (STATUS_DEVICE_REMOVED);
+		return (STATUS_DEVICE_NOT_CONNECTED);
 	case USBD_STATUS_PENDING:
 		return (STATUS_PENDING);
 	case USBD_STATUS_NOT_SUPPORTED:



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