]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Handle NULL tty->ldisc
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 11 Jan 2016 06:41:02 +0000 (22:41 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2016 23:01:44 +0000 (15:01 -0800)
commitffdf62276aafa0e43819e51abfcd598c636bb180
treeae0fb349f31a88ab6074bdf9c791a03680697bdf
parentbaf6a3ec9808ac8d65d5081485b1a21df82230cb
tty: Handle NULL tty->ldisc

In preparation of destroying line discipline on hangup, fix
ldisc core operations to properly handle when the tty's ldisc is
NULL.

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