]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Prevent tty_port destruction if tty not released
authorPeter Hurley <peter@hurleysoftware.com>
Thu, 19 Sep 2013 00:42:39 +0000 (20:42 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 01:08:34 +0000 (18:08 -0700)
commit8768feb0db44b7f907464973e988ae69fb54aa3f
tree004e21ee4cc60fc6a9dd9b57991dd968047fc0f8
parent20910610536fe12466c9c0eb1ee2e616d6047893
tty: Prevent tty_port destruction if tty not released

If the tty driver mistakenly drops the last port reference
before the tty has been released, issue a diagnostic and
abort the port destruction.

This will leak memory and may zombify the port, but might
otherwise keep the machine in runnable state.

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