tty: handle NULL parameters in free_tty_struct()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 24 Jul 2012 11:52:04 +0000 (12:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Aug 2012 19:54:27 +0000 (12:54 -0700)
commitdc6802a771e91050fb686dfeeb9de4c6c9cadb79
tree1fa2d7ffa108e53a2433e816a8195aec7d6050f0
parent4ac5d7050e4e4d63751e78fb152a274d05c08563
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 <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c