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

Commit 6ded6ab9 authored by Serge Hallyn's avatar Serge Hallyn Committed by Serge E. Hallyn
Browse files

User namespaces: use the current_user_ns() macro



Fix up the last current_user()->user_ns instance to use
current_user_ns().

Signed-off-by: default avatarSerge E. Hallyn <serue@us.ibm.com>
parent 18b6e041
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -361,7 +361,7 @@ struct user_struct *find_user(uid_t uid)
{
	struct user_struct *ret;
	unsigned long flags;
	struct user_namespace *ns = current_user()->user_ns;
	struct user_namespace *ns = current_user_ns();

	spin_lock_irqsave(&uidhash_lock, flags);
	ret = uid_hash_find(uid, uidhashentry(ns, uid));