]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita6163fa1e7f9e86971ec2102d39e6ca000795add
treeed7b7096ce6174150109835d23d76ecc659286e6
parent8b6c0ac03ac81d245df85b50c01f3ba76b563500
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