fs/devpts/inode.c: correctly check d_alloc_name() return code in devpts_pty_new()
authorAndrey Vagin <avagin@openvz.org>
Tue, 22 Mar 2011 23:35:11 +0000 (16:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Mar 2011 00:44:17 +0000 (17:44 -0700)
commitb12d12596992f608f5506a8dabe4d1299594bd1e
treeaca8883d4660d3dec0590de162c5b9fa7e457ee1
parente91f90bb0bb10be9cc8efd09a3cf4ecffcad0db1
fs/devpts/inode.c: correctly check d_alloc_name() return code in devpts_pty_new()

d_alloc_name return NULL in case error, but we expect errno in
devpts_pty_new.

Addresses http://bugzilla.openvz.org/show_bug.cgi?id=1758

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/devpts/inode.c