From: Jiri Slaby Date: Wed, 12 Oct 2011 09:32:44 +0000 (+0200) Subject: TTY: pty, release tty in all ptmx_open fail paths X-Git-Tag: v3.2-rc1~170^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1177c0efc04d032644895b8d757f55b433912596;p=pandora-kernel.git TTY: pty, release tty in all ptmx_open fail paths Mistakenly, commit 64ba3dc3143d (tty: never hold BTM while getting tty_mutex) switched one fail path in ptmx_open to not free the newly allocated tty. Fix that by jumping to the appropriate place. And rename the labels so that it's clear what is going on there. Introduced-in: v2.6.36-rc2 Signed-off-by: Jiri Slaby Cc: stable Cc: Arnd Bergmann Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed