summaryrefslogtreecommitdiffstats
path: root/drivers/tty/pty.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2012-09-19 15:35:46 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-21 09:51:09 -0700
commit43eca0aef73cc6f0d37ad139f1cbb810e62e409d (patch)
treecbfe2836fa83eacbb4f08f31cb982fa20c8a8d80 /drivers/tty/pty.c
parent84c3b84860440a9e3a3666c14112f41311b8f623 (diff)
downloadlinux-43eca0aef73cc6f0d37ad139f1cbb810e62e409d.tar.gz
linux-43eca0aef73cc6f0d37ad139f1cbb810e62e409d.tar.bz2
linux-43eca0aef73cc6f0d37ad139f1cbb810e62e409d.zip
serial_core: Fix race in uart_handle_dcd_change
If a serial driver is called post hangup with a second DCD event then we will attempt to get the ldisc of NULL. Check we have a tty before trying to do anything with it. This is still only safe within the uart layer if the caller holds the relevant uart locks. We could do with a version where the tty is passed for more general use. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/pty.c')
0 files changed, 0 insertions, 0 deletions