diff options
| author | riastradh <riastradh@NetBSD.org> | 2022-01-09 18:27:23 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2022-01-09 18:27:23 +0000 |
| commit | c689328b89ee9a99948ad96f3e3cf94543ece47b (patch) | |
| tree | d0f4a8f6d36e02396fb414c80fa4bb25c42e1603 /sys/dev/microcode | |
| parent | 677ce32611e13f0711c43b0b1ae1cf6719e1abb2 (diff) | |
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.
Diffstat (limited to 'sys/dev/microcode')
0 files changed, 0 insertions, 0 deletions
