]> asedeno.scripts.mit.edu Git - linux.git/commit
USB: serial: opticon: stop all I/O on close()
authorJohan Hovold <johan@kernel.org>
Tue, 14 Jan 2020 11:01:46 +0000 (12:01 +0100)
committerJohan Hovold <johan@kernel.org>
Fri, 17 Jan 2020 10:28:05 +0000 (11:28 +0100)
commite6421583953fd92eba1785f90b228d70345125d6
tree48429fcda8143c067c8dd0c2ade6bdef8140691b
parenta00e7182308f41cac1aa071912ff7a16797dade9
USB: serial: opticon: stop all I/O on close()

Make sure to stop any submitted write URBs on close().

Note that the tty layer will wait up to 30 seconds for the buffers to
drain before close() is called.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/opticon.c