Alan Cox 43eca0aef7 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>
2012-09-21 09:51:09 -07:00
..
2012-09-05 13:28:35 -07:00
2012-08-13 16:50:19 -07:00
2012-09-05 13:28:35 -07:00
2012-09-05 13:28:35 -07:00
2012-09-05 13:28:35 -07:00
2011-03-31 11:26:23 -03:00
2012-08-10 12:55:47 -07:00
2012-08-16 11:53:14 -07:00
2012-08-13 16:50:19 -07:00
2012-08-13 16:50:19 -07:00
2012-09-05 13:28:35 -07:00
2012-09-05 13:28:35 -07:00
2012-08-10 12:55:47 -07:00
2012-08-10 12:55:47 -07:00