Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent 618e724b
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -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;