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 <[email protected]>
---

 src/tools/cgsnapshot.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/tools/cgsnapshot.c b/src/tools/cgsnapshot.c
index cb3b22d..2b5e2df 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;
                }


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to