From: Hans Petter Selasky Date: Sat, 10 Jul 2021 16:13:21 +0000 (+0200) Subject: Make sure the avr32dci_odevd structure is used. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=56ef5ad21fb071e09ef6dc2470d7e20f6da17d62;p=people%2Froyger%2Ffreebsd.git Make sure the avr32dci_odevd structure is used. This fixes a compilation error. Sponsored by: NVIDIA Networking Approved by: re (gjb) (cherry picked from commit 3f5054862a4603116bb872cf8b7b3cc946e93741) (cherry picked from commit cea6dbdf1bae404ac7299e5f3a7755b81b2d23e5) --- 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;