Fix an incorrect NULL argument to usbd_set_interface() associated
with the ALT_IFACE_1 quirk. PR: usb/79190 Submitted by: Hans Petter Selasky <hselasky@c2i.net>
This commit is contained in:
parent
2b2f484438
commit
53feee26e6
@ -938,7 +938,7 @@ USB_ATTACH(umass)
|
||||
#endif
|
||||
|
||||
if (sc->quirks & ALT_IFACE_1) {
|
||||
err = usbd_set_interface(0, 1);
|
||||
err = usbd_set_interface(uaa->iface, 1);
|
||||
if (err) {
|
||||
DPRINTF(UDMASS_USB, ("%s: could not switch to "
|
||||
"Alt Interface %d\n",
|
||||
|
Loading…
Reference in New Issue
Block a user