projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
618e724
)
ns proc: Return -ENOENT for a nonexistent /proc/self/ns/ entry.
author
Eric W. Biederman
<ebiederm@xmission.com>
Wed, 11 May 2011 22:42:08 +0000
(15:42 -0700)
committer
Eric W. Biederman
<ebiederm@xmission.com>
Tue, 24 May 2011 22:30:33 +0000
(15:30 -0700)
Spotted-by: Nathan Lynch <ntl@pobox.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
fs/proc/namespaces.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/proc/namespaces.c
b/fs/proc/namespaces.c
index f18d6d58bf793bae6045b149437bdcacdbe5b13c..781dec5bd682c30435c852c98d08814f2a511f93 100644
(file)
--- a/
fs/proc/namespaces.c
+++ b/
fs/proc/namespaces.c
@@
-161,6
+161,7
@@
static struct dentry *proc_ns_dir_lookup(struct inode *dir,
if (!memcmp(dentry->d_name.name, (*entry)->name, len))
break;
}
+ error = ERR_PTR(-ENOENT);
if (entry > last)
goto out;