Skip to content

Commit

Permalink
User namespaces: use the current_user_ns() macro
Browse files Browse the repository at this point in the history
Fix up the last current_user()->user_ns instance to use
current_user_ns().

Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
  • Loading branch information
Serge Hallyn committed Nov 24, 2008
1 parent 18b6e04 commit 6ded6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 6ded6ab

Please sign in to comment.