From: Alexey Khoroshilov Date: Fri, 14 Sep 2012 21:29:37 +0000 (+0400) Subject: pcmcia: synclink_cs: fix potential tty NULL dereference X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~77^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=221b7b5796b520b51c34c40239d77921ba39225b;p=pandora-kernel.git pcmcia: synclink_cs: fix potential tty NULL dereference tty_port_tty_get() can return NULL after port hangup that may happen anytime. The patch adds checks that tty_port_tty_get() returns nonNULL around places where tty is actually used. I have no actual hardware to test the patch, so I have updated rx side processing from common sense only. v2: rx handling updated according Alan Cox feedback. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed