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:
Ian Dowse 2005-03-25 01:47:01 +00:00
parent e2b66de827
commit 5e1f111310
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144088

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