pty: Fix allocation failure double free
authorAlan Cox <alan@redhat.com>
Mon, 13 Oct 2008 09:43:48 +0000 (10:43 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Oct 2008 16:51:44 +0000 (09:51 -0700)
commit335adde689150d2fcf4df3cb26a6fc6740ed1f3e
tree93e11b89e96e8baf15a276e4008e08bb5873fb90
parentfe9cd962a62cb5f666cf48b9941d3f3cde134254
pty: Fix allocation failure double free

The updating and moving around of the pty code added a bug where both the
helper and caller free the main tty struct (the pty driver must free the
o_tty pair itself however).

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/pty.c