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>
Sat, 27 Aug 2011 10:43:11 +0000 (18:43 +0800)
kernel/cpuset.c

index 121c37d..136e0e6 100644 (file)
@@ -1377,7 +1377,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)