From: Jiri Slaby Date: Tue, 7 Aug 2012 19:47:26 +0000 (+0200) Subject: TTY: pty, stop passing NULL to free_tty_struct X-Git-Tag: omap-cleanup-sparseirq-for-v3.7~139 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f9ea7ad7be10dca95e7ca57221c5f81be48d852;p=pandora-kernel.git TTY: pty, stop passing NULL to free_tty_struct In case alloc_tty_struct fails in pty_common_install, we pass NULL to free_tty_struct. This is invalid as the function is not ready to cope with that. And even if it was, it is not nice to do that anyway. Signed-off-by: Jiri Slaby Reported-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed