Date: Mon, 17 Jul 2006 18:40:47 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 101783 for review Message-ID: <200607171840.k6HIelkw026798@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=101783 Change 101783 by hselasky@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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607171840.k6HIelkw026798>