summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge E. Hallyn <serue@us.ibm.com>2008-10-28 09:02:52 -0500
committerSerge E. Hallyn <serue@us.ibm.com>2008-10-28 09:02:52 -0500
commit472203385bdc25cd75ec1c88fd68b8d2850a50b1 (patch)
treec311d00996a33a03ed0772f5a726844ebd883c7f
parent2fc7d6787cddf28029ca50f61ac4518531200581 (diff)
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>
-rw-r--r--kernel/user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/user.c b/kernel/user.c
index c0ef3a464438..97202cb29adc 100644
--- a/kernel/user.c
+++ b/kernel/user.c
@@ -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));