Commit 62ca24ba authored by Eric W. Biederman's avatar Eric W. Biederman

ns proc: Return -ENOENT for a nonexistent /proc/self/ns/ entry.

Spotted-by: default avatarNathan Lynch <ntl@pobox.com>
Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
parent 618e724b
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment