]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Improve handling of alternate settings in the USB stack.
authorhselasky <hselasky@FreeBSD.org>
Tue, 15 Dec 2020 11:51:17 +0000 (11:51 +0000)
committerhselasky <hselasky@FreeBSD.org>
Tue, 15 Dec 2020 11:51:17 +0000 (11:51 +0000)
commit72933cc12f5a75913bae7aff528251fc5a5cd5ab
tree4ee90fc8ba60a8652fe1d761d5a84ee38374bd48
parent598815450f6da66df583c82632764dcd54d47fa0
Improve handling of alternate settings in the USB stack.

Limit the number of alternate settings to 256.
Else the alternate index variable may wrap around.

PR: 251856
MFC after: 1 week
Submitted by: Ma, Horse <Shichun.Ma@dell.com>
Sponsored by: Mellanox Technologies // NVIDIA Networking
sys/dev/usb/usb_parse.c