Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67897
b: refs/heads/master
c: ed6590a
h: refs/heads/master
i:
  67895: 9d5da39
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Oct 12, 2007
1 parent 3d41ed6 commit 4349516
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0e66fb3492442faa17fc7f27a3eba35b3c811e38
refs/heads/master: ed6590a861a16276db34ee626375fa79f3369ac3
2 changes: 2 additions & 0 deletions trunk/drivers/usb/serial/ipaq.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,11 +646,13 @@ static int ipaq_open(struct usb_serial_port *port, struct file *filp)
kfree(port->bulk_out_buffer);
port->bulk_in_buffer = kmalloc(URBDATA_SIZE, GFP_KERNEL);
if (port->bulk_in_buffer == NULL) {
port->bulk_out_buffer = NULL; /* prevent double free */
goto enomem;
}
port->bulk_out_buffer = kmalloc(URBDATA_SIZE, GFP_KERNEL);
if (port->bulk_out_buffer == NULL) {
kfree(port->bulk_in_buffer);
port->bulk_in_buffer = NULL;
goto enomem;
}
port->read_urb->transfer_buffer = port->bulk_in_buffer;
Expand Down

0 comments on commit 4349516

Please sign in to comment.