um: drivers/xterm.c: fix a file descriptor leak
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Wed, 14 Sep 2011 23:21:20 +0000 (16:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Sep 2011 01:09:37 +0000 (18:09 -0700)
commitb40997b872cdb70140f127af6069f00a86b6cf81
tree1d7494187281b7e004fd75910a45f598cdd6d7dd
parente5f0bdc7840bdb791247cb98dfc1dab6ea6c7da4
um: drivers/xterm.c: fix a file descriptor leak

I could use out_close1, but that seems to be the code path to close the fd
returned by os_create_unix_socket, and using it to close the fd returned
by mkstemp might lead to some confusion, so I don't do it.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/drivers/xterm.c