From: Alexey Khoroshilov Date: Thu, 13 Sep 2012 18:56:55 +0000 (+0400) Subject: USB: omninet: fix potential tty NULL dereference X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~73^2~110 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8321652ae22f38830af5b553f3a316d68948ddce;p=pandora-kernel.git USB: omninet: fix potential tty NULL dereference Add check for return value of tty_port_tty_get, since it can return NULL after port hangup that may happen anytime. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed