]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
Make sure the avr32dci_odevd structure is used.
authorHans Petter Selasky <hselasky@FreeBSD.org>
Sat, 10 Jul 2021 16:13:21 +0000 (18:13 +0200)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Thu, 17 Mar 2022 12:25:59 +0000 (13:25 +0100)
This fixes a compilation error.

Sponsored by: NVIDIA Networking
Approved by: re (gjb)

(cherry picked from commit 3f5054862a4603116bb872cf8b7b3cc946e93741)
(cherry picked from commit cea6dbdf1bae404ac7299e5f3a7755b81b2d23e5)

sys/dev/usb/controller/avr32dci.c

index 20f9a0e6bd4b65a654d2e94329f40b1555d82672..67255f051855e543cb7e75011efb235a5d1974b6 100644 (file)
@@ -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;