]> git.hungrycats.org Git - linux/commit
USB: serial: fix interface refcounting
authorJohan Hovold <jhovold@gmail.com>
Tue, 19 Mar 2013 08:21:09 +0000 (09:21 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 27 Mar 2013 02:41:22 +0000 (02:41 +0000)
commit033aa8401ce2e90c9a26560b0712a479773de50b
tree7d65ecbb847922d1b90e9a163867e443b5c2ae9c
parent06b72f0486459015c1cb24828e100df7516dd0ee
USB: serial: fix interface refcounting

commit d7971051e4df825e0bc11b995e87bfe86355b8e5 upstream.

Make sure the interface is not released before our serial device.

Note that drivers are still not allowed to access the interface in
any way that may interfere with another driver that may have gotten
bound to the same interface after disconnect returns.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/serial/usb-serial.c