From: Alan Cox Date: Wed, 19 Sep 2012 14:35:46 +0000 (+0100) Subject: serial_core: Fix race in uart_handle_dcd_change X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~74^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43eca0aef73cc6f0d37ad139f1cbb810e62e409d;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed