diff options
author | 2016-09-18 09:51:24 +0000 | |
---|---|---|
committer | 2016-09-18 09:51:24 +0000 | |
commit | 8eed1fe67055348e95c9882501456b3f55dfad14 (patch) | |
tree | 92c188e6b42a90a3f3c0ada26932f2349c5b62c8 /usr.sbin/switchd/proc.c | |
parent | Use ${INSTALL} instead of install, like in all the other Makefile's. (diff) | |
download | wireguard-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