From: Jiri Slaby Date: Mon, 28 Feb 2011 09:34:05 +0000 (+0100) Subject: USB: serial/keyspan_pda, fix potential tty NULL dereferences X-Git-Tag: v2.6.39-rc1~472^2~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7d7aedfcd4e20e7dfc7356d30cc22dc0b0f493e;p=pandora-kernel.git USB: serial/keyspan_pda, fix potential tty NULL dereferences Make sure that we check the return value of tty_port_tty_get. Sometimes it may return NULL and we later dereference that. There are several places to check. For easier handling, tty_port_tty_get is moved directly to the palce where needed in keyspan_pda_rx_interrupt. Signed-off-by: Jiri Slaby Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed