USB: serial: fix port release
authorJohan Hovold <jhovold@gmail.com>
Thu, 21 Mar 2013 11:36:46 +0000 (12:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 20:48:27 +0000 (13:48 -0700)
commita4a83100a1653a389a5efaa68ad32c9b89010910
treebc591f17ac0f3618c156224b8067fc443e105c1b
parent30d9d42e9a7c205cc139dce743463b8070684df5
USB: serial: fix port release

We should not call kill_traffic (and usb_kill_urb) once disconnect
returns. Any pending urbs are killed at disconnect and new submissions
are prevented by usb_unbind_interface (and usb_disable_interface).

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