diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2004-11-02 21:28:56 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2004-11-02 21:28:56 +0000 |
commit | 9b1033eda47783845ace56913c8de5e96434442c (patch) | |
tree | df0f97debbe710de7fbab995fb040b75982303e3 /sys/dev/usb/usb_subr.c | |
parent | 3197f24b0747a7e5056d50fa0388407828812a97 (diff) |
fix getting strings off a device which broke with the removal of the
UQ_NO_STRINGS quirk.
Diffstat (limited to 'sys/dev/usb/usb_subr.c')
-rw-r--r-- | sys/dev/usb/usb_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c index c2c68e52b9a..c251f8cd900 100644 --- a/sys/dev/usb/usb_subr.c +++ b/sys/dev/usb/usb_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usb_subr.c,v 1.29 2004/10/31 12:10:52 dlg Exp $ */ +/* $OpenBSD: usb_subr.c,v 1.30 2004/11/02 21:28:55 dlg Exp $ */ /* $NetBSD: usb_subr.c,v 1.103 2003/01/10 11:19:13 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $ */ @@ -166,7 +166,7 @@ usbd_get_string_desc(usbd_device_handle dev, int sindex, int langid, if (err) return (err); - if (actlen < 2) + if (actlen < 1) return (USBD_SHORT_XFER); USETW(req.wLength, sdesc->bLength); /* the whole string */ |