kernel/nsproxy.c: remove duplicate task_cred_xxx for user_ns
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Fri, 22 Feb 2013 00:44:21 +0000 (16:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 Feb 2013 01:22:26 +0000 (17:22 -0800)
commitd7d48f6216686602e6e3d8470563326605b01c95
treee4f10dd9fdce684d57ba33829fa9cf5094001744
parentd3330cf08ccf9aef28a3e5740fd5cc7ac536db84
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 <yuanhan.liu@linux.intel.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/nsproxy.c