Searched hist:"43 eca0aef73cc6f0d37ad139f1cbb810e62e409d" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/tty/serial/ |
H A D | serial_core.c | diff 43eca0aef73cc6f0d37ad139f1cbb810e62e409d Wed Sep 19 16:35:46 CEST 2012 Alan Cox <alan@linux.intel.com> 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>
|