summaryrefslogtreecommitdiff
path: root/drivers/tty/pty.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2016-09-10 01:37:02 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-15 13:37:09 +0300
commita727b025f43d7952c0697562f5cecda9f42758aa (patch)
tree6c47c8fc223593189222209490600615a0b333f3 /drivers/tty/pty.c
parente5e8960236dbff4b49eac1ec7f47b1c912531b62 (diff)
downloadlinux-a727b025f43d7952c0697562f5cecda9f42758aa.tar.xz
tty: serial_core: add tty NULL check to uart_tx_stopped
Commit 761ed4a94582 ("tty: serial_core: convert uart_close to use tty_port_close") created a case where a port used for a console does not get shutdown on tty closing. Then a call to uart_tx_stopped() segfaults because the tty is NULL. This could be fixed to restore old behavior, but we also want to allow tty_ports to work without a tty attached. So this change to allow a NULL tty_struct is needed either way. Fixes: 761ed4a94582 ("tty: serial_core: convert uart_close to use tty_port_close") Reported-by: kernel test robot <xiaolong.ye@intel.com> Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/pty.c')
0 files changed, 0 insertions, 0 deletions