git: cea6dbdf1bae - stable/13 - Make sure the avr32dci_odevd structure is used. This fixes a compilation error.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 10 Mar 2022 08:35:39 UTC
The branch stable/13 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=cea6dbdf1bae404ac7299e5f3a7755b81b2d23e5 commit cea6dbdf1bae404ac7299e5f3a7755b81b2d23e5 Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2021-07-10 16:13:21 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2022-03-10 08:29:22 +0000 Make sure the avr32dci_odevd structure is used. This fixes a compilation error. Sponsored by: NVIDIA Networking (cherry picked from commit 3f5054862a4603116bb872cf8b7b3cc946e93741) --- sys/dev/usb/controller/avr32dci.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/dev/usb/controller/avr32dci.c b/sys/dev/usb/controller/avr32dci.c index 20f9a0e6bd4b..67255f051855 100644 --- a/sys/dev/usb/controller/avr32dci.c +++ b/sys/dev/usb/controller/avr32dci.c @@ -1656,6 +1656,12 @@ tr_handle_get_descriptor: len = sizeof(avr32dci_devd); ptr = (const void *)&avr32dci_devd; goto tr_valid; + case UDESC_DEVICE_QUALIFIER: + if (value & 0xff) + goto tr_stalled; + len = sizeof(avr32dci_odevd); + ptr = (const void *)&avr32dci_odevd; + goto tr_valid; case UDESC_CONFIG: if (value & 0xff) { goto tr_stalled;