From: Rasmus Villemoes Date: Sat, 12 Jul 2014 23:44:00 +0000 (+0200) Subject: drivers: tty: Fix use-after-free in pty_common_install X-Git-Tag: cleanup-for-v3.18~124^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07584d4a356ef52c084e1e4fedc22858ffc2f8b2;p=pandora-kernel.git drivers: tty: Fix use-after-free in pty_common_install In 2c964a2f "drivers: tty: Merge alloc_tty_struct and initialize_tty_struct", I messed up the refactorization of pty_common_install, causing use-after-free and NULL pointer derefs on various error paths. This should fix it. Reported-by: Julia Lawall Reported-by: Dan Carpenter Signed-off-by: Rasmus Villemoes Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed