From: Jan Safranek Date: Thu, 2 Dec 2010 14:00:40 +0000 (+0100) Subject: In corner case there is omitted incrementation of the counter so X-Git-Tag: v0.37~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=492ab00ac3201a8f46edb91a54b8f29cae64f30c;p=thirdparty%2Flibcgroup.git In corner case there is omitted incrementation of the counter so there will be endless loop. This patch fixes the problem Signed-off-by: Ivana Hutarova Varekova Signed-off-by: Jan Safranek --- diff --git a/src/tools/cgsnapshot.c b/src/tools/cgsnapshot.c index cb3b22dd..2b5e2df7 100644 --- a/src/tools/cgsnapshot.c +++ b/src/tools/cgsnapshot.c @@ -313,6 +313,7 @@ static int display_cgroup_data(struct cgroup *group, printf("cannot find controller "\ "'%s' in group '%s'\n", controller[i], group->name); + i++; ret = -1; continue; }