From: David Howells Date: Mon, 25 Jun 2012 11:55:18 +0000 (+0100) Subject: VFS: Make clone_mnt()/copy_tree()/collect_mounts() return errors X-Git-Tag: v3.6-rc1~152^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be34d1a3bc4b6f357a49acb55ae870c81337e4f0;p=pandora-kernel.git 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 for a bug fix. [AV: folded braino fix by Dan Carpenter] Original-author: Valerie Aurora Signed-off-by: David Howells Cc: Valerie Aurora Cc: Andreas Gruenbacher Signed-off-by: Al Viro --- Reading git-diff-tree failed