diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2011-05-11 18:42:08 -0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2011-05-24 18:30:33 -0400 |
commit | 62ca24baf1417e56fd2ae4ff07adfe7f6a2e42fc (patch) | |
tree | 5359e4bc30e95134d766a9ff7a074b3bf32b8a9d /fs | |
parent | 618e724b8d79c6232daac49cb39b0723bf5c4b08 (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/namespaces.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/proc/namespaces.c b/fs/proc/namespaces.c index f18d6d58bf79..781dec5bd682 100644 --- a/fs/proc/namespaces.c +++ b/fs/proc/namespaces.c | |||
@@ -161,6 +161,7 @@ static struct dentry *proc_ns_dir_lookup(struct inode *dir, | |||
161 | if (!memcmp(dentry->d_name.name, (*entry)->name, len)) | 161 | if (!memcmp(dentry->d_name.name, (*entry)->name, len)) |
162 | break; | 162 | break; |
163 | } | 163 | } |
164 | error = ERR_PTR(-ENOENT); | ||
164 | if (entry > last) | 165 | if (entry > last) |
165 | goto out; | 166 | goto out; |
166 | 167 | ||