USB: cyberjack: fix disconnect handling
authorJohan Hovold <jhovold@gmail.com>
Thu, 21 Mar 2013 11:36:45 +0000 (12:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 20:48:26 +0000 (13:48 -0700)
commit30d9d42e9a7c205cc139dce743463b8070684df5
tree90a06959b9d95f076272c05caefece58c983e81b
parentc3452f5e444446fad9bb1957d22a25334798f94c
USB: cyberjack: fix disconnect handling

Make sure the interrupt urb submitted in port_probe is killed in
port_remove.

The interrupt-urb completion handler references the port and may get
called after port_remove has returned and the port has been
unregistered (although this is currently prevented by usb-serial core as
we are using a non-private urb).

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