From: Jiri Slaby Date: Mon, 28 Feb 2011 09:34:06 +0000 (+0100) Subject: USB: serial/kobil_sct, fix potential tty NULL dereference X-Git-Tag: v2.6.37.5~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dfa93a98e7e3f1f14d8c38a946ba43c3a479ddf;p=pandora-kernel.git USB: serial/kobil_sct, fix potential tty NULL dereference commit 6960f40a954619857e7095a6179eef896f297077 upstream. Make sure that we check the return value of tty_port_tty_get. Sometimes it may return NULL and we later dereference that. The only place here is in kobil_read_int_callback, so fix it. Signed-off-by: Jiri Slaby Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed