Module Name: src Committed By: riastradh Date: Sat Mar 19 10:05:52 UTC 2022
Modified Files: src/sys/dev/usb: usbdi.c Log Message: usbdi(9): Fix usbd_get_no_alts. This incorrectly rejected the configuration as invalid if any descriptor is not large enough to be interface descriptors. Instead, it should reject the configuration only if any descriptor is not large enough to be a _descriptor_, or if any interface-type descriptor is not large enough to be an interface descriptor, but skip over descriptors of other types even if they're smaller than interface descriptors. Candidate fix for PR kern/56762. To generate a diff of this commit: cvs rdiff -u -r1.238 -r1.239 src/sys/dev/usb/usbdi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.