]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Improve handling of alternate settings in the USB stack.
authorhselasky <hselasky@FreeBSD.org>
Tue, 15 Dec 2020 15:36:41 +0000 (15:36 +0000)
committerhselasky <hselasky@FreeBSD.org>
Tue, 15 Dec 2020 15:36:41 +0000 (15:36 +0000)
commitd551da60d42039156f003de6644e9e147ed167a3
treea5b5aba2d7818065048bd6e5467cc4ffd4ec10dd
parent0362223be9283bed021c6cea9d528a8385191941
Improve handling of alternate settings in the USB stack.

Move initialization of num_altsetting under USB_CFG_INIT, else
there will be a page fault when enumerating USB devices.

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