]> git.baikalelectronics.ru Git - kernel.git/commit
VFS: Make clone_mnt()/copy_tree()/collect_mounts() return errors
authorDavid Howells <dhowells@redhat.com>
Mon, 25 Jun 2012 11:55:18 +0000 (12:55 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 14 Jul 2012 12:37:27 +0000 (16:37 +0400)
commitb5c587a00f876d26c63b15f918c027eb9cbb8283
tree39caaf1b4965d47be64ce45491477fce555b2d17
parentdee202314a92ae640ea32d464be06bd873bd3c87
VFS: Make clone_mnt()/copy_tree()/collect_mounts() return errors

copy_tree() can theoretically fail in a case other than ENOMEM, but always
returns NULL which is interpreted by callers as -ENOMEM.  Change it to return
an explicit error.

Also change clone_mnt() for consistency and because union mounts will add new
error cases.

Thanks to Andreas Gruenbacher <agruen@suse.de> for a bug fix.
[AV: folded braino fix by Dan Carpenter]

Original-author: Valerie Aurora <vaurora@redhat.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Cc: Valerie Aurora <valerie.aurora@gmail.com>
Cc: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c
fs/pnode.c
kernel/audit_tree.c