linux/tools/testing/selftests/cgroup
Roman Gushchin e14d314c7a selftests: cgroup: fix cleanup path in test_memcg_subtree_control()
Dan reported, that cleanup path in test_memcg_subtree_control()
triggers a static checker warning:
  ./tools/testing/selftests/cgroup/test_memcontrol.c:76 \
  test_memcg_subtree_control()
  error: uninitialized symbol 'child2'.

Fix this by initializing child2 and parent2 variables and
split the cleanup path into few stages.

Signed-off-by: Roman Gushchin <guro@fb.com>
Fixes: 84092dbcf9 ("selftests: cgroup: add memory controller self-tests")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Cc: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Shuah Khan <shuah@kernel.org>
2019-04-08 16:44:22 -06:00
..
.gitignore cgroup: kselftests: add test_core to .gitignore 2018-09-06 12:24:47 -06:00
cgroup_util.c Add tests for memory.oom.group 2018-09-07 16:36:01 -06:00
cgroup_util.h Add tests for memory.oom.group 2018-09-07 16:36:01 -06:00
Makefile Add cgroup core selftests 2018-08-09 09:12:45 -06:00
test_core.c Add cgroup core selftests 2018-08-09 09:12:45 -06:00
test_memcontrol.c selftests: cgroup: fix cleanup path in test_memcg_subtree_control() 2019-04-08 16:44:22 -06:00