forked from Minki/linux
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>
This commit is contained in:
parent
618e724b8d
commit
62ca24baf1
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user