diff options
author | Johan Hovold <jhovold@gmail.com> | 2013-03-07 18:55:53 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-19 03:27:54 +0400 |
commit | 0b2588cadf9f131614cb251e34f7be1f4e1a2e08 (patch) | |
tree | fedeac10644f0ac73734a9cdb91036fbf1eb09af /COPYING | |
parent | b74414f5f3227d9db309bfaaea3ae889af01430a (diff) | |
download | linux-0b2588cadf9f131614cb251e34f7be1f4e1a2e08.tar.xz |
TTY: fix close of uninitialised ports
Make sure we do not make tty-driver callbacks or wait for port to drain
on uninitialised ports (e.g. when open failed) in
tty_port_close_start().
No callback, such as flush_buffer or wait_until_sent, needs to be made
on a port that has never been opened. Neither does it make much sense to
add drain delay for an uninitialised port.
Currently a drain delay of up to two seconds could be added when a tty
fails to open.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions