PERFORCE change 172667 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Jan 6 18:10:20 UTC 2010
http://p4web.freebsd.org/chv.cgi?CH=172667
Change 172667 by hselasky at hselasky_laptop001 on 2010/01/06 18:09:37
USB core:
- fix a parameter passing
- "scratch_size" is incorrectly passed as language ID when
retrieving the language ID table.
- might fix retrieval of string descriptions
- reported by Renato Botelho
- patch by HPS
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/usb_device.c#61 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/usb_device.c#61 (text+ko) ====
@@ -1691,8 +1691,7 @@
udev->ddesc.iSerialNumber) {
/* read out the language ID string */
err = usbd_req_get_string_desc(udev, NULL,
- (char *)scratch_ptr, 4, scratch_size,
- USB_LANGUAGE_TABLE);
+ (char *)scratch_ptr, 4, 0, USB_LANGUAGE_TABLE);
} else {
err = USB_ERR_INVAL;
}
More information about the p4-projects
mailing list