From: Dan Carpenter Date: Tue, 24 Jul 2012 11:52:04 +0000 (+0100) Subject: tty: handle NULL parameters in free_tty_struct() X-Git-Tag: omap-cleanup-sparseirq-for-v3.7~144 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc6802a771e91050fb686dfeeb9de4c6c9cadb79;p=pandora-kernel.git tty: handle NULL parameters in free_tty_struct() We sometimes pass NULL pointers to free_tty_struct(). One example where it can happen is in the error handling code in pty_common_install(). Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed