Module Name: src Committed By: riastradh Date: Sun Jan 9 18:27:23 UTC 2022
Modified Files: src/sys/dev/usb: uvideo.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 src/sys/dev/usb/uvideo.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.