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
e2b66de827
commit
5e1f111310
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144088
@ -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