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-03-28 18:30:01 +01:00
2012-08-13 16:50:19 -07:00
2012-08-13 16:50:19 -07:00
2012-03-28 18:30:03 +01:00
2012-01-26 11:29:47 -08:00
2012-03-28 18:30:03 +01:00
2012-08-27 07:13:33 -07:00
2011-02-17 11:16:15 -08:00
2012-09-16 17:31:36 -07:00
2011-03-31 11:26:23 -03:00
2012-09-05 13:21:46 -07:00
2012-09-17 04:45:29 -07:00
2011-09-22 16:08:57 -07:00
2011-08-26 11:01:15 -07:00
2011-09-22 16:08:57 -07:00
2012-03-23 17:19:37 -07:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-01-26 17:14:50 -08:00
2012-01-26 17:14:50 -08:00