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:
iedowse 2005-03-25 01:47:01 +00:00
parent 2b2f484438
commit 53feee26e6

View File

@ -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",