Ask for the descriptor size corresponding to the number of ports present
authormpi <mpi@openbsd.org>
Sun, 10 Aug 2014 13:32:14 +0000 (13:32 +0000)
committermpi <mpi@openbsd.org>
Sun, 10 Aug 2014 13:32:14 +0000 (13:32 +0000)
commit02212bea07818a735fa44539ead7924b46d59397
tree6d1c4a6ec84dbc4dcdfa608aba715a9feb1e9f7b
parent76ed1edb6c0516cf3b7621ecc11a589e7284f25c
Ask for the descriptor size corresponding to the number of ports present
in the hub, not from some random value from the stack.
sys/dev/usb/uhub.c