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-08-02 13:51:46 -04:00
2012-09-16 17:31:36 -07:00
2012-09-05 13:28:35 -07:00
2012-08-13 10:15:22 +05:30
2012-07-29 21:11:05 -03:00
2012-07-30 09:32:39 -07:00
2012-09-16 17:31:36 -07:00
2012-08-13 14:34:02 +08:00
2012-08-27 07:13:33 -07:00
2012-09-16 17:31:36 -07:00
2012-09-16 17:31:36 -07:00
2012-08-27 17:07:37 -07:00
2012-09-16 17:31:36 -07:00
2012-09-16 17:31:36 -07:00
2012-09-06 09:22:02 -04:00
2012-07-31 08:16:22 -06:00
2012-07-31 08:16:22 -06:00