tty: Fix hangup race with TIOCSETD ioctl
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 11:04:50 +0000 (07:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 23:38:35 +0000 (16:38 -0700)
commite97733ca677878d0ecf08af17f4661eb83e268bc
treee0961f2ab449e6f9cce43a9a0992fd25aa1de653
parent9fbfa34c18b31978bf6bab26148f84d7a4b3ccea
tty: Fix hangup race with TIOCSETD ioctl

The hangup may already have happened; check for that state also.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_ldisc.c