From: Yuanhan Liu Date: Wed, 20 Feb 2013 02:15:37 +0000 (+1100) Subject: kernel/nsproxy.c: remove duplicate task_cred_xxx for user_ns X-Git-Tag: next-20130220~1^2~281 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bfb5bc6bc623348819ba32091d680d4c7c0e4549;p=karo-tx-linux.git kernel/nsproxy.c: remove duplicate task_cred_xxx for user_ns We can use user_ns, which is also assigned from task_cred_xxx(tsk, user_ns), at the beginning of copy_namespaces(). Signed-off-by: Yuanhan Liu Acked-by: Serge Hallyn Cc: "Eric W. Biederman" Signed-off-by: Andrew Morton --- diff --git a/kernel/nsproxy.c b/kernel/nsproxy.c index 78e2ecb20165..b781e66a8f2c 100644 --- a/kernel/nsproxy.c +++ b/kernel/nsproxy.c @@ -153,8 +153,7 @@ int copy_namespaces(unsigned long flags, struct task_struct *tsk) goto out; } - new_ns = create_new_namespaces(flags, tsk, - task_cred_xxx(tsk, user_ns), tsk->fs); + new_ns = create_new_namespaces(flags, tsk, user_ns, tsk->fs); if (IS_ERR(new_ns)) { err = PTR_ERR(new_ns); goto out;