--- - branch: MAIN date: Sun Jan 9 18:27:23 UTC 2022 files: - new: '1.64' old: '1.63' path: src/sys/dev/usb/uvideo.c pathrev: src/sys/dev/usb/uvideo.c@1.64 type: modified id: 20220109T182723Z.0465c372b7d4d9145300dd4bd9ef3767b5c0214e log: | uvideo(4): Fix USB interface numbering. Don't try to be clever and count -- just use bInterfaceNumber. The previous logic to count interface descriptors failed to consider interfaces with alternate settings, which led it to pass an invalid interface number to usbd_device2interface_handle. It is simpler to just use the recorded bInterfaceNumber, which is guaranteed by the USB spec to be zero-indexed and below bNumInterfaces as we need. module: src subject: 'CVS commit: src/sys/dev/usb' unixtime: '1641752843' user: riastradh