From 492ab00ac3201a8f46edb91a54b8f29cae64f30c Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Thu, 2 Dec 2010 15:00:40 +0100 Subject: [PATCH] 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 --- src/tools/cgsnapshot.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.47.2