Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25841
b: refs/heads/master
c: 269690a
h: refs/heads/master
i:
  25839: e3e9459
v: v3
  • Loading branch information
Samuel Ortiz authored and David S. Miller committed Apr 14, 2006
1 parent 94fb355 commit 7694357
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 4909e488f65fc729fc0f8d42bd1600c56a8bd83c
refs/heads/master: 269690ac164fc0a7c2de03e7e0d2f554104d1516
6 changes: 4 additions & 2 deletions trunk/drivers/net/irda/irda-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1815,14 +1815,14 @@ static int irda_usb_probe(struct usb_interface *intf,
self->needspatch = (ret < 0);
if (ret < 0) {
printk("patch_device failed\n");
goto err_out_4;
goto err_out_5;
}

/* replace IrDA class descriptor with what patched device is now reporting */
irda_desc = irda_usb_find_class_desc (self->usbintf);
if (irda_desc == NULL) {
ret = -ENODEV;
goto err_out_4;
goto err_out_5;
}
if (self->irda_desc)
kfree (self->irda_desc);
Expand All @@ -1832,6 +1832,8 @@ static int irda_usb_probe(struct usb_interface *intf,

return 0;

err_out_5:
unregister_netdev(self->netdev);
err_out_4:
kfree(self->speed_buff);
err_out_3:
Expand Down

0 comments on commit 7694357

Please sign in to comment.