summaryrefslogtreecommitdiff
path: root/sys/dev/microcode
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2022-01-09 18:27:23 +0000
committerriastradh <riastradh@NetBSD.org>2022-01-09 18:27:23 +0000
commitc689328b89ee9a99948ad96f3e3cf94543ece47b (patch)
treed0f4a8f6d36e02396fb414c80fa4bb25c42e1603 /sys/dev/microcode
parent677ce32611e13f0711c43b0b1ae1cf6719e1abb2 (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