Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361644
b: refs/heads/master
c: d797105
h: refs/heads/master
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Mar 21, 2013
1 parent 1d226a4 commit a1ff153
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 5492bf3d5655b4954164f69c02955a7fca267611
refs/heads/master: d7971051e4df825e0bc11b995e87bfe86355b8e5
3 changes: 2 additions & 1 deletion trunk/drivers/usb/serial/usb-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ static void destroy_serial(struct kref *kref)
}
}

usb_put_intf(serial->interface);
usb_put_dev(serial->dev);
kfree(serial);
}
Expand Down Expand Up @@ -620,7 +621,7 @@ static struct usb_serial *create_serial(struct usb_device *dev,
}
serial->dev = usb_get_dev(dev);
serial->type = driver;
serial->interface = interface;
serial->interface = usb_get_intf(interface);
kref_init(&serial->kref);
mutex_init(&serial->disc_mutex);
serial->minor = SERIAL_TTY_NO_MINOR;
Expand Down

0 comments on commit a1ff153

Please sign in to comment.