Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310917
b: refs/heads/master
c: 0658a33
h: refs/heads/master
i:
  310915: 0b9d763
v: v3
  • Loading branch information
Jan Safrata authored and Greg Kroah-Hartman committed Jun 14, 2012
1 parent b587cd7 commit d746efe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 07828b10985393cd875eac1545fba47107e97bf9
refs/heads/master: 0658a3366db7e27fa32c12e886230bb58c414c92
6 changes: 3 additions & 3 deletions trunk/drivers/usb/serial/usb-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ static int usb_serial_probe(struct usb_interface *interface,

if (retval) {
dbg("sub driver rejected device");
kfree(serial);
usb_serial_put(serial);
module_put(type->driver.owner);
return retval;
}
Expand Down Expand Up @@ -829,7 +829,7 @@ static int usb_serial_probe(struct usb_interface *interface,
*/
if (num_bulk_in == 0 || num_bulk_out == 0) {
dev_info(&interface->dev, "PL-2303 hack: descriptors matched but endpoints did not\n");
kfree(serial);
usb_serial_put(serial);
module_put(type->driver.owner);
return -ENODEV;
}
Expand All @@ -843,7 +843,7 @@ static int usb_serial_probe(struct usb_interface *interface,
if (num_ports == 0) {
dev_err(&interface->dev,
"Generic device with no bulk out, not allowed.\n");
kfree(serial);
usb_serial_put(serial);
module_put(type->driver.owner);
return -EIO;
}
Expand Down

0 comments on commit d746efe

Please sign in to comment.