patch-2.3.11 linux/drivers/usb/acm.c

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

diff -u --recursive --new-file v2.3.10/linux/drivers/usb/acm.c linux/drivers/usb/acm.c
@@ -231,7 +231,10 @@
 			continue;
 
 		printk("USB ACM found\n");
-		usb_set_configuration(dev, dev->config[cfgnum].bConfigurationValue);
+		if (usb_set_configuration(dev, dev->config[cfgnum].bConfigurationValue)) {
+			printk (KERN_INFO " Failed usb_set_configuration: ACM\n");
+			continue;
+		}
 		acm->dev=dev;
 		acm->readendp=dev->config[cfgnum].altsetting[0].interface[1].endpoint[0].bEndpointAddress;
 		acm->writeendp=dev->config[cfgnum].altsetting[0].interface[1].endpoint[1].bEndpointAddress;

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