summaryrefslogtreecommitdiffstats
path: root/kernel/user.c
diff options
context:
space:
mode:
authorSerge Hallyn2008-11-24 22:24:10 +0100
committerSerge E. Hallyn2008-11-25 00:57:46 +0100
commit6ded6ab9be4f6164aef1c527407c1b94f0929799 (patch)
tree3a3f1275ffb0226e573fd1012db41de1861bc789 /kernel/user.c
parentUser namespaces: set of cleanups (v2) (diff)
downloadkernel-qcow2-linux-6ded6ab9be4f6164aef1c527407c1b94f0929799.tar.gz
kernel-qcow2-linux-6ded6ab9be4f6164aef1c527407c1b94f0929799.tar.xz
kernel-qcow2-linux-6ded6ab9be4f6164aef1c527407c1b94f0929799.zip
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>
Diffstat (limited to 'kernel/user.c')
-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));