**************************************************************
*usbnet bug fix
*Author: mwelling
*Date: 2007-10-24 16:35:23 -0500 (Wed, 24 Oct 2007)
*New Revision: 395
**************************************************************
diff -uprN linux-2.6.20-at92_e1.3.1/drivers/usb/net/usbnet.c linux-2.6.20.AT91_svn/drivers/usb/net/usbnet.c
--- linux-2.6.20-at92_e1.3.1/drivers/usb/net/usbnet.c	2007-02-04 13:44:54.000000000 -0500
+++ linux-2.6.20.AT91_svn/drivers/usb/net/usbnet.c	2007-10-24 17:35:23.000000000 -0400
@@ -1182,6 +1182,8 @@ usbnet_probe (struct usb_interface *udev
 	// NOTE net->name still not usable ...
 	if (info->bind) {
 		status = info->bind (dev, udev);
+		if (status < 0)
+		goto out1;		
 		// heuristic:  "usb%d" for links we know are two-host,
 		// else "eth%d" when there's reasonable doubt.  userspace
 		// can rename the link if it knows better.
@@ -1208,7 +1210,7 @@ usbnet_probe (struct usb_interface *udev
 	if (status == 0 && dev->status)
 		status = init_status (dev, udev);
 	if (status < 0)
-		goto out1;
+		goto out3;
 
 	if (!dev->rx_urb_size)
 		dev->rx_urb_size = dev->hard_mtu;

