Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115739
b: refs/heads/master
c: 49b707b
h: refs/heads/master
i:
  115737: e65aa44
  115735: d0eefaa
v: v3
  • Loading branch information
Julia Lawall authored and Greg Kroah-Hartman committed Oct 17, 2008
1 parent e6ae141 commit 33efe51
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 5b775f672cc993ba9dba5626811ab1f2ac42883b
refs/heads/master: 49b707b90c7f7260beb8691fc5d99d71a5549ec0
18 changes: 9 additions & 9 deletions trunk/drivers/usb/class/usblp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1076,15 +1076,16 @@ static int usblp_probe(struct usb_interface *intf,
const struct usb_device_id *id)
{
struct usb_device *dev = interface_to_usbdev (intf);
struct usblp *usblp = NULL;
struct usblp *usblp;
int protocol;
int retval;

/* Malloc and start initializing usblp structure so we can use it
* directly. */
if (!(usblp = kzalloc(sizeof(struct usblp), GFP_KERNEL))) {
usblp = kzalloc(sizeof(struct usblp), GFP_KERNEL);
if (!usblp) {
retval = -ENOMEM;
goto abort;
goto abort_ret;
}
usblp->dev = dev;
mutex_init(&usblp->wmut);
Expand Down Expand Up @@ -1179,12 +1180,11 @@ static int usblp_probe(struct usb_interface *intf,
usb_set_intfdata (intf, NULL);
device_remove_file(&intf->dev, &dev_attr_ieee1284_id);
abort:
if (usblp) {
kfree(usblp->readbuf);
kfree(usblp->statusbuf);
kfree(usblp->device_id_string);
kfree(usblp);
}
kfree(usblp->readbuf);
kfree(usblp->statusbuf);
kfree(usblp->device_id_string);
kfree(usblp);
abort_ret:
return retval;
}

Expand Down

0 comments on commit 33efe51

Please sign in to comment.