patch-2.3.29 linux/drivers/usb/usb.c

Next file: linux/drivers/usb/usb_scsi.c
Previous file: linux/drivers/usb/uhci.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.28/linux/drivers/usb/usb.c linux/drivers/usb/usb.c
@@ -383,7 +383,7 @@
 		return -1;
 	}
 
-	interface = &dev->actconfig->interface[ifnum];
+	interface = dev->actconfig->interface + ifnum;
 
         if (usb_interface_claimed(interface))
                 return -1;
@@ -416,7 +416,7 @@
 
 	for (ifnum = 0; ifnum < dev->actconfig->bNumInterfaces; ifnum++) {
 		/* if this interface hasn't already been claimed */
-		if (!usb_interface_claimed(dev->actconfig->interface)) {
+		if (!usb_interface_claimed(dev->actconfig->interface + ifnum)) {
 			if (usb_find_interface_driver(dev, ifnum))
 				rejected++;
 		}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)