summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhci.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-07-11 05:29:16 +0000
committerderaadt <deraadt@openbsd.org>2004-07-11 05:29:16 +0000
commitfb11a4d4a855705900cb57f49ec48de40081b29c (patch)
treea314a2cff866cf2364474054cd2012ab9b502053 /sys/dev/usb/uhci.c
parentprototypes; ok deraadt (diff)
downloadwireguard-openbsd-fb11a4d4a855705900cb57f49ec48de40081b29c.tar.xz
wireguard-openbsd-fb11a4d4a855705900cb57f49ec48de40081b29c.zip
from netbsd via loki@animata.net
uhub.c revision 1.65, ohci.c revision 1.146, uhci.c revision 1.177 Use the correct wValue to get hub desriptors. Also, make wValue checks of root hub codes less strict.
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r--sys/dev/usb/uhci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index 32b36c0f26e..5cca24f927a 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhci.c,v 1.31 2004/05/04 16:59:32 grange Exp $ */
+/* $OpenBSD: uhci.c,v 1.32 2004/07/11 05:29:16 deraadt Exp $ */
/* $NetBSD: uhci.c,v 1.172 2003/02/23 04:19:26 simonb Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
@@ -3304,7 +3304,7 @@ uhci_root_ctrl_start(usbd_xfer_handle xfer)
}
break;
case C(UR_GET_DESCRIPTOR, UT_READ_CLASS_DEVICE):
- if (value != 0) {
+ if ((value & 0xff) != 0) {
err = USBD_IOERROR;
goto ret;
}