PERFORCE change 101783 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Jul 17 18:40:48 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=101783
Change 101783 by hselasky at hselasky_mini_itx on 2006/07/17 18:39:53
Make the USB_DEVICEINFO IOCTL backwards compatible.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/usb.c#6 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/usb.c#6 (text+ko) ====
@@ -857,13 +857,18 @@
int addr = di->udi_addr;
if((addr < 1) ||
- (addr >= USB_MAX_DEVICES) ||
- (bus->devices[addr] == 0))
+ (addr >= USB_MAX_DEVICES))
{
error = EINVAL;
goto done;
}
+ if (bus->devices[addr] == 0)
+ {
+ error = ENXIO;
+ goto done;
+ }
+
error = usbd_fill_deviceinfo(bus->devices[addr], di, 1);
goto done;
}
More information about the p4-projects
mailing list