summaryrefslogtreecommitdiffstats
path: root/usr.sbin/switchd/proc.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2016-09-18 09:51:24 +0000
committermpi <mpi@openbsd.org>2016-09-18 09:51:24 +0000
commit8eed1fe67055348e95c9882501456b3f55dfad14 (patch)
tree92c188e6b42a90a3f3c0ada26932f2349c5b62c8 /usr.sbin/switchd/proc.c
parentUse ${INSTALL} instead of install, like in all the other Makefile's. (diff)
downloadwireguard-openbsd-8eed1fe67055348e95c9882501456b3f55dfad14.tar.xz
wireguard-openbsd-8eed1fe67055348e95c9882501456b3f55dfad14.zip
Ensure that the device descriptor ``bMaxPacketSize'' value is usable
before using it as the ``wMaxPacketSize'' of the default endpoint. This prevents host controller drivers from using incorrect value, in particular 0, that makes ehci(4) crash. While here do the 0xff -> 512 conversion for super speed devices. Crash found with a facedancer21. ok deraadt@
Diffstat (limited to 'usr.sbin/switchd/proc.c')
0 files changed, 0 insertions, 0 deletions