OSDN Git Service

cgroup: fix typo
authorYi Sun <beyounn@gmail.com>
Tue, 17 Nov 2009 22:58:24 +0000 (14:58 -0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 31 Mar 2011 02:03:16 +0000 (10:03 +0800)
kernel/cpuset.c

index e210b3d..beae43e 100644 (file)
@@ -1382,7 +1382,7 @@ static int cpuset_can_attach(struct cgroup_subsys *ss, struct cgroup *cont,
        int ret;
        struct cpuset *cs = cgroup_cs(cont);
 
-       if ((current != task) && (!capable(CAP_SYS_ADMIN))) {
+       if ((current != tsk) && (!capable(CAP_SYS_ADMIN))) {
                const struct cred *cred = current_cred(), *tcred;
 
                if (cred->euid != tcred->uid && cred->euid != tcred->suid)