]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: mct_u232: fix broken close
authorJohan Hovold <jhovold@gmail.com>
Thu, 25 Oct 2012 08:29:14 +0000 (10:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Oct 2012 17:10:02 +0000 (10:10 -0700)
commit9e7922db1d38b0ee22355cda640c175bc4e5501a
tree426821989eaaa8e83d90188d8119ef0c1b886e54
parent14e6c99bfc02a84d98ee77552a328855c1db31e5
USB: mct_u232: fix broken close

commit 5260e458f5eff269a43e4f1e9c47186c57b88ddb upstream.

Make sure generic close is called at close.

The driver relies on the generic write implementation but did not call
generic close.

Note that the call to kill the read urb is not redundant, as mct_u232
uses an interrupt urb from the second port as the read urb and that
generic close therefore fails to kill it.

Compile-only tested.

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