提交 6ded6ab9 编写于 作者: S Serge Hallyn 提交者: Serge E. Hallyn

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: NSerge E. Hallyn <serue@us.ibm.com>
上级 18b6e041
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册