commit | b8edebe4b8b4ad5bd436cf9080b77b29e219029a | [log] [tgz] |
---|---|---|
author | Jiri Slaby <jslaby@suse.cz> | Mon Mar 05 14:52:48 2012 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Mar 08 12:50:02 2012 -0800 |
tree | 41cbe2cf6027f051a234fe42f6a97cc6ddadf446 | |
parent | 6e1aeb0379f47b51ad4d25e5e0d9648dbd50f0b9 [diff] |
TTY: amiserial, use tty_port_close_end Hmm, the code was sleeping with interrupts disabled. This was not good. Fix this by turning interrupts at an appropriate place. (The race is protected by CLOSING flag.) After the move, the code is identical to tty_port_close_end, so use it! Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>