]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: mct_u232: fix broken close
authorJohan Hovold <jhovold@gmail.com>
Thu, 21 Oct 2010 08:49:10 +0000 (10:49 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Nov 2010 18:59:51 +0000 (10:59 -0800)
commit5ed216a908c5273995b2c65c14639c8b3448b065
tree6935fff9858e3fbd80dcee574787f70d0ecadcb5
parentfb84c60fcdbcd33c162f2503aae1ac688ee2f4d2
USB: mct_u232: fix broken close

commit 92ca0dc5ee022e4c0e488177e1d8865a0778c6c2 upstream.

Fix regression introduced by commit
f26788da3b342099d2b02d99ba1cb7f154d6ef7b (USB: serial: refactor generic
close) which broke driver close().

This driver uses non-standard semantics for the read urb which makes the
generic close function fail to kill it (the read urb is actually an
interrupt urb and therefore bulk_in size is zero).

Reported-by: Eric Shattow "Eprecocious" <lucent@gmail.com>
Tested-by: Eric Shattow "Eprecocious" <lucent@gmail.com>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/mct_u232.c