Skip to content

Commit

Permalink
ns proc: Return -ENOENT for a nonexistent /proc/self/ns/ entry.
Browse files Browse the repository at this point in the history
Spotted-by: Nathan Lynch <[email protected]>
Signed-off-by: Eric W. Biederman <[email protected]>
  • Loading branch information
ebiederm committed May 24, 2011
1 parent 618e724 commit 62ca24b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/proc/namespaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 62ca24b

Please sign in to comment.