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

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

diff -u --recursive --new-file v2.3.10/linux/drivers/usb/audio.c linux/drivers/usb/audio.c
@@ -81,7 +81,10 @@
 
 		endpoint = &interface->endpoint[0];
 
-//        	usb_set_configuration(dev, dev->config[0].bConfigurationValue);
+//        	if (usb_set_configuration(dev, dev->config[0].bConfigurationValue)) {
+//			printk (KERN_INFO " Failed usb_set_configuration: Audio\n");
+//			break;
+//		}
 //        	usb_set_protocol(dev, 0);
 //        	usb_set_idle(dev, 0, 0);
         
@@ -92,8 +95,13 @@
                         aud);
 
 		list_add(&aud->list, &usb_audio_list);
+		
+		return 0;
 	}
-	return 0;
+	
+	if (aud)
+		kfree (aud);
+	return -1;
 }
 
 static void usb_audio_disconnect(struct usb_device *dev)

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