diff options
| author | David Howells <[email protected]> | 2012-06-25 12:55:18 +0100 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2012-07-14 16:37:27 +0400 |
| commit | be34d1a3bc4b6f357a49acb55ae870c81337e4f0 (patch) | |
| tree | 39caaf1b4965d47be64ce45491477fce555b2d17 /include/linux/debugobjects.h | |
| parent | 55e4def0a6e79e7eb53017c4935adfed76510cd7 (diff) | |
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 <[email protected]> for a bug fix.
[AV: folded braino fix by Dan Carpenter]
Original-author: Valerie Aurora <[email protected]>
Signed-off-by: David Howells <[email protected]>
Cc: Valerie Aurora <[email protected]>
Cc: Andreas Gruenbacher <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions