Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Fixes: 84092db ("selftests: cgroup: add memory controller self-tests") Reported-by: Dan Carpenter <[email protected]> Cc: Dan Carpenter <[email protected]> Cc: Shuah Khan (Samsung OSG) <[email protected]> Cc: Mike Rapoport <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
- Loading branch information