提交 62ca24ba 编写于 作者: E Eric W. Biederman

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

Spotted-by: NNathan Lynch <ntl@pobox.com>
Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
上级 618e724b
...@@ -161,6 +161,7 @@ static struct dentry *proc_ns_dir_lookup(struct inode *dir, ...@@ -161,6 +161,7 @@ static struct dentry *proc_ns_dir_lookup(struct inode *dir,
if (!memcmp(dentry->d_name.name, (*entry)->name, len)) if (!memcmp(dentry->d_name.name, (*entry)->name, len))
break; break;
} }
error = ERR_PTR(-ENOENT);
if (entry > last) if (entry > last)
goto out; goto out;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册