From owner-cvs-all Fri Jan 17 9:40: 3 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81C6937B401; Fri, 17 Jan 2003 09:40:01 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 267A543F18; Fri, 17 Jan 2003 09:40:01 -0800 (PST) (envelope-from joe@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h0HHe0fh001018; Fri, 17 Jan 2003 09:40:00 -0800 (PST) (envelope-from joe@repoman.freebsd.org) Received: (from joe@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h0HHe05c001017; Fri, 17 Jan 2003 09:40:00 -0800 (PST) Message-Id: <200301171740.h0HHe05c001017@repoman.freebsd.org> From: Josef Karthauser Date: Fri, 17 Jan 2003 09:40:00 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/usb usb_subr.c X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG joe 2003/01/17 09:40:00 PST Modified files: (Branch: RELENG_4) sys/dev/usb usb_subr.c Log: MFC: revision 1.54 Some USB devices are not prepared to deal with a single byte string descriptor request, which usbd_get_string_desc() uses to get the length of a descriptor. One device for instance returns a full 8 byte long packet instead which confuses the rest of the stack and leads to the USB port being reset. The fix is to instead request two bytes, but not to complain if we only get one. Revision Changes Path 1.23.2.7 +8 -2 src/sys/dev/usb/usb_subr.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message