X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fcgroup.c;h=35eebd5510c2165c6f8daa2cef1fecab9187d6d0;hb=2077776641b6ffb0049f13018d2e162340ec51c7;hp=046c1609606bc627059aa6cd5df687fa86f15d3b;hpb=fdc76bf9b62446c9d4b00e0d355c3212b4f1b13b;p=linux-2.6-omap-h63xx.git diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 046c1609606..35eebd5510c 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -2104,7 +2104,7 @@ static void *cgroup_tasks_start(struct seq_file *s, loff_t *pos) down_read(&cgrp->pids_mutex); if (pid) { int end = cgrp->pids_length; - int i; + while (index < end) { int mid = (index + end) / 2; if (cgrp->tasks_pids[mid] == pid) {