From 5e1f111310d2e4d8e5bbf6ba65008fbaa54a792e Mon Sep 17 00:00:00 2001 From: Ian Dowse Date: Fri, 25 Mar 2005 01:47:01 +0000 Subject: [PATCH] Fix an incorrect NULL argument to usbd_set_interface() associated with the ALT_IFACE_1 quirk. PR: usb/79190 Submitted by: Hans Petter Selasky --- sys/dev/usb/umass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c index 6beed413fe9e..8121626bf3fd 100644 --- a/sys/dev/usb/umass.c +++ b/sys/dev/usb/umass.c @@ -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",