Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219645
b: refs/heads/master
c: e3a92cd
h: refs/heads/master
i:
  219643: 7276bde
v: v3
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Aug 31, 2010
1 parent d48585c commit 648ec58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe149785a468e15fb6583a6acf9c4bb28324efbd
refs/heads/master: e3a92cdedf3584e20e13511aab252a82d715f927
11 changes: 5 additions & 6 deletions trunk/drivers/staging/vt6656/main_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,10 +770,9 @@ vt6656_probe(struct usb_interface *intf, const struct usb_device_id *id)

udev = usb_get_dev(udev);
netdev = alloc_etherdev(sizeof(DEVICE_INFO));

if (!netdev) {
printk(KERN_ERR DEVICE_NAME ": allocate net device failed\n");
kfree(pDevice);
rc = -ENOMEM;
goto err_nomem;
}

Expand All @@ -799,9 +798,7 @@ vt6656_probe(struct usb_interface *intf, const struct usb_device_id *id)
rc = register_netdev(netdev);
if (rc) {
printk(KERN_ERR DEVICE_NAME " Failed to register netdev\n");
free_netdev(netdev);
kfree(pDevice);
return -ENODEV;
goto err_netdev;
}

usb_device_reset(pDevice);
Expand All @@ -819,10 +816,12 @@ vt6656_probe(struct usb_interface *intf, const struct usb_device_id *id)

return 0;

err_netdev:
free_netdev(netdev);
err_nomem:
usb_put_dev(udev);

return -ENOMEM;
return rc;
}

static void device_free_tx_bufs(PSDevice pDevice)
Expand Down

0 comments on commit 648ec58

Please sign in to comment.