Make sure the avr32dci_odevd structure is used.

This fixes a compilation error.

MFC after:	1 week
Sponsored by:	NVIDIA Networking
This commit is contained in:
Hans Petter Selasky 2021-07-10 18:13:21 +02:00
parent d038463bd2
commit 3f5054862a

View File

@ -1690,6 +1690,12 @@ avr32dci_roothub_exec(struct usb_device *udev,
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;