From: Serge Hallyn Date: Mon, 24 Nov 2008 21:24:10 +0000 (-0500) Subject: User namespaces: use the current_user_ns() macro X-Git-Tag: v2.6.29-rc1~577^2^2~9^2 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=6ded6ab9be4f6164aef1c527407c1b94f0929799;hp=18b6e0414e42d95183f07d8177e3ff0241abd825;p=safe%2Fjmp%2Flinux-2.6 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 --- 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));