Date: Thu, 3 Aug 2006 13:24:58 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 103114 for review Message-ID: <200608031324.k73DOwmO029766@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103114 Change 103114 by hselasky@hselasky_mini_itx on 2006/08/03 13:24:52 Correct wrong size of hub descriptor. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/uhub.c#5 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/uhub.c#5 (text+ko) ==== @@ -412,7 +412,8 @@ if(!err && (nports >= 8)) { - USETW(req.wLength, USB_HUB_DESCRIPTOR_SIZE + (nports / 8)); + u_int16_t len = (USB_HUB_DESCRIPTOR_SIZE-1) + ((nports+7) / 8); + USETW(req.wLength, len); err = usbd_do_request(udev, &req, &hubdesc); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608031324.k73DOwmO029766>