fs: devpts_pty_new() return -ENOMEM if dentry allocation failed
authorAndrey Vagin <avagin@openvz.org>
Mon, 7 Feb 2011 21:14:52 +0000 (00:14 +0300)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 21 Mar 2011 04:59:24 +0000 (00:59 -0400)
commitaa597bc1f9476d0527e35d6dd9b481422e8205a0
tree3fa1a8a1441199bc9821b5095072258f2fc2ac06
parent1c34092adf1feaba25b7c739cc4def2751f4fa05
fs: devpts_pty_new() return -ENOMEM if dentry allocation failed

In this case nobody can open a slave point, so will be better return
from devpts_pty_new()

Now we should not check error code from d_find_alias() in
devpts_pty_kill(), because the dentry exists all times.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/devpts/inode.c