diff options
| -rw-r--r-- | drivers/net/usb/lan78xx.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index 3d92ea6fcc02..f033fee225a1 100644 --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c | |||
| @@ -3792,7 +3792,7 @@ static int lan78xx_probe(struct usb_interface *intf, | |||
| 3792 | ret = register_netdev(netdev); | 3792 | ret = register_netdev(netdev); |
| 3793 | if (ret != 0) { | 3793 | if (ret != 0) { |
| 3794 | netif_err(dev, probe, netdev, "couldn't register the device\n"); | 3794 | netif_err(dev, probe, netdev, "couldn't register the device\n"); |
| 3795 | goto out3; | 3795 | goto out4; |
| 3796 | } | 3796 | } |
| 3797 | 3797 | ||
| 3798 | usb_set_intfdata(intf, dev); | 3798 | usb_set_intfdata(intf, dev); |
| @@ -3807,12 +3807,14 @@ static int lan78xx_probe(struct usb_interface *intf, | |||
| 3807 | 3807 | ||
| 3808 | ret = lan78xx_phy_init(dev); | 3808 | ret = lan78xx_phy_init(dev); |
| 3809 | if (ret < 0) | 3809 | if (ret < 0) |
| 3810 | goto out4; | 3810 | goto out5; |
| 3811 | 3811 | ||
| 3812 | return 0; | 3812 | return 0; |
| 3813 | 3813 | ||
| 3814 | out4: | 3814 | out5: |
| 3815 | unregister_netdev(netdev); | 3815 | unregister_netdev(netdev); |
| 3816 | out4: | ||
| 3817 | usb_free_urb(dev->urb_intr); | ||
| 3816 | out3: | 3818 | out3: |
| 3817 | lan78xx_unbind(dev, intf); | 3819 | lan78xx_unbind(dev, intf); |
| 3818 | out2: | 3820 | out2: |
