diff options
author | imp <imp@FreeBSD.org> | 2007-06-30 20:18:44 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2007-06-30 20:18:44 +0000 |
commit | 14083ff1fda32d3b03d654beea71491828526a61 (patch) | |
tree | 2e722a61d094c9a4b080ca578c6d4632ab0a771d /sys/dev/usb/uhub.c | |
parent | cb598992c4660efd190def6769c56ca73adae0cd (diff) | |
download | FreeBSD-src-14083ff1fda32d3b03d654beea71491828526a61.zip FreeBSD-src-14083ff1fda32d3b03d654beea71491828526a61.tar.gz |
Fix two more PRs:
(1) Add size parameter to usbd_get_string()
(2) Properly limit speed when a full speed hub is plugged into a high
speed hub.
Submitted by: Hans Petter Selasky
PR: 80773, 79725
Approved by: re@ (kensmith)
Diffstat (limited to 'sys/dev/usb/uhub.c')
-rw-r--r-- | sys/dev/usb/uhub.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c index 26defca..86fbba2 100644 --- a/sys/dev/usb/uhub.c +++ b/sys/dev/usb/uhub.c @@ -655,7 +655,8 @@ uhub_child_pnpinfo_str(device_t cbdev, device_t child, char *buf, found_dev: /* XXX can sleep */ - (void)usbd_get_string(dev, dev->ddesc.iSerialNumber, &serial[0]); + (void)usbd_get_string(dev, dev->ddesc.iSerialNumber, serial, + sizeof(serial)); if (dev->ifacenums == NULL) { snprintf(buf, buflen, "vendor=0x%04x product=0x%04x " "devclass=0x%02x devsubclass=0x%02x " |