kernel-fxtec-pro1x/drivers/tty
Peter Hurley 7f22f6c935 tty: Retry failed reopen if tty teardown in-progress
A small window exists where a tty reopen will observe the tty
just prior to imminent teardown (tty->count == 0); in this case, open()
returns EIO to userspace.

Instead, retry the open after checking for signals and yielding;
this interruptible retry loop allows teardown to commence and initialize
a new tty on retry. Never retry the BSD master pty reopen; there is no
guarantee the pty pair teardown is imminent since the slave file
descriptors may remain open indefinitely.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Cc: stable <stable@vger.kernel.org> # 4.4
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-01-26 23:17:54 -08:00
..
hvc
ipwireless
serial ARM: SoC driver updates for v4.5 2016-01-20 18:42:30 -08:00
vt
amiserial.c
bfin_jtag_comm.c
cyclades.c
ehv_bytechan.c tty: remove unused variable sprop 2015-02-03 15:52:13 -08:00
goldfish.c
isicom.c
Kconfig
Makefile
metag_da.c
mips_ejtag_fdc.c
moxa.c
moxa.h
mxser.c
mxser.h
n_gsm.c
n_hdlc.c
n_r3964.c
n_tracerouter.c
n_tracesink.c
n_tracesink.h
n_tty.c Merge 4.4-rc6 into tty-next 2015-12-21 11:06:07 -08:00
nozomi.c
pty.c
rocket.c
rocket.h
rocket_int.h
synclink.c
synclink_gt.c
synclinkmp.c
sysrq.c sysrq: Fix warning in sysrq generated crash. 2015-12-29 16:29:18 -08:00
tty_audit.c
tty_buffer.c
tty_io.c tty: Retry failed reopen if tty teardown in-progress 2016-01-26 23:17:54 -08:00
tty_ioctl.c
tty_ldisc.c
tty_ldsem.c
tty_mutex.c tty: Wait interruptibly for tty lock on reopen 2016-01-26 23:17:54 -08:00
tty_port.c