commit | 62ca24baf1417e56fd2ae4ff07adfe7f6a2e42fc | [log] [tgz] |
---|---|---|
author | Eric W. Biederman <ebiederm@xmission.com> | Wed May 11 15:42:08 2011 -0700 |
committer | Eric W. Biederman <ebiederm@xmission.com> | Tue May 24 15:30:33 2011 -0700 |
tree | 5359e4bc30e95134d766a9ff7a074b3bf32b8a9d | |
parent | 618e724b8d79c6232daac49cb39b0723bf5c4b08 [diff] [blame] |
ns proc: Return -ENOENT for a nonexistent /proc/self/ns/ entry. Spotted-by: Nathan Lynch <ntl@pobox.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
diff --git a/fs/proc/namespaces.c b/fs/proc/namespaces.c index f18d6d5..781dec5 100644 --- a/fs/proc/namespaces.c +++ b/fs/proc/namespaces.c
@@ -161,6 +161,7 @@ if (!memcmp(dentry->d_name.name, (*entry)->name, len)) break; } + error = ERR_PTR(-ENOENT); if (entry > last) goto out;