Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28374
b: refs/heads/master
c: bfd5df3
h: refs/heads/master
v: v3
  • Loading branch information
Chris Lund authored and Greg Kroah-Hartman committed Jun 21, 2006
1 parent 1bd6c42 commit e868049
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 14f76cc7ab75b1c9db036dcd6b247e0dcc8952be
refs/heads/master: bfd5df3c0cf65bdf10a3a00baff036cb096140f6
6 changes: 5 additions & 1 deletion trunk/drivers/usb/serial/io_edgeport.c
Original file line number Diff line number Diff line change
Expand Up @@ -2730,7 +2730,7 @@ static int edge_startup (struct usb_serial *serial)
struct edgeport_serial *edge_serial;
struct edgeport_port *edge_port;
struct usb_device *dev;
int i;
int i, j;

dev = serial->dev;

Expand Down Expand Up @@ -2794,6 +2794,10 @@ static int edge_startup (struct usb_serial *serial)
edge_port = kmalloc (sizeof(struct edgeport_port), GFP_KERNEL);
if (edge_port == NULL) {
dev_err(&serial->dev->dev, "%s - Out of memory\n", __FUNCTION__);
for (j = 0; j < i; ++j) {
kfree (usb_get_serial_port_data(serial->port[j]));
usb_set_serial_port_data(serial->port[j], NULL);
}
usb_set_serial_data(serial, NULL);
kfree(edge_serial);
return -ENOMEM;
Expand Down

0 comments on commit e868049

Please sign in to comment.