]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Mar 2013 19:06:03 +0000 (12:06 -0700)
commit28a4b1b70dd44e8e4ab9df6e84e776911902313e
treef2cbd616565429e1e5ca5e1b1ffabfc3ae85b38c
parent1f9e70fa1d260bb1ed217bd636cad0c1d0a29f24
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>
drivers/usb/serial/usb-serial.c