tty: Move tty hung up check from port->lock critical section
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 5 Nov 2014 17:40:03 +0000 (12:40 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 22:57:27 +0000 (14:57 -0800)
commit633caba8932d9ba2f79bbcb7573e58eae3fdac68
treeed7b7096ce6174150109835d23d76ecc659286e6
parent19038ad9f08c96dcff870b18af8fd5ae5141dec1
tty: Move tty hung up check from port->lock critical section

The port->lock does not protect the filp->f_op field; move
the tty_hung_up_p() test outside the port->lock critical section
in tty_port_close_start().

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