mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
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: Serge E. Hallyn <serue@us.ibm.com>
This commit is contained in:
parent
18b6e0414e
commit
6ded6ab9be
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue