devpts: propagate error code from devpts_pty_new
commit4f8f9d66cdac4845409f7520e4f287a1907a6bf9
authorSukadev Bhattiprolu <sukadev@us.ibm.com>
Wed, 30 Apr 2008 07:54:20 +0000 (30 00:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:48 +0000 (30 08:29 -0700)
tree5b70fe024acd91a64e1c6b8848637e753cdb9b1a
parent86a96538178f923aa1aa43c1e7cfec5951df7f8a
devpts: propagate error code from devpts_pty_new

Have ptmx_open() propagate any error code returned by devpts_pty_new()
(which returns either 0 or -ENOMEM anyway).

Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_io.c