diff options
author | Serge Hallyn <serue@us.ibm.com> | 2008-11-24 16:24:10 -0500 |
---|---|---|
committer | Serge E. Hallyn <serue@us.ibm.com> | 2008-11-24 18:57:46 -0500 |
commit | 6ded6ab9be4f6164aef1c527407c1b94f0929799 (patch) | |
tree | 3a3f1275ffb0226e573fd1012db41de1861bc789 /kernel/user.c | |
parent | 18b6e0414e42d95183f07d8177e3ff0241abd825 (diff) | |
download | kernel_samsung_tuna-6ded6ab9be4f6164aef1c527407c1b94f0929799.zip kernel_samsung_tuna-6ded6ab9be4f6164aef1c527407c1b94f0929799.tar.gz kernel_samsung_tuna-6ded6ab9be4f6164aef1c527407c1b94f0929799.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/user.c b/kernel/user.c index c0ef3a4..97202cb 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)); |