On Tue, Jun 26, 2018 at 12:03:48PM +0300, Dan Carpenter wrote: > Hello Roman Gushchin, > > The patch 84092dbcf901: "selftests: cgroup: add memory controller > self-tests" from May 11, 2018, leads to the following static checker > warning: > > ./tools/testing/selftests/cgroup/test_memcontrol.c:76 test_memcg_subtree_control() > error: uninitialized symbol 'child2'. > > ./tools/testing/selftests/cgroup/test_memcontrol.c > 69 > 70 cleanup: > 71 cg_destroy(child); > 72 cg_destroy(parent); > 73 free(parent); > 74 free(child); > 75 > 76 cg_destroy(child2); > > The problem with using one error label to handle all possible returns > is that some stuff hasn't been initialized yet. > > 77 cg_destroy(parent2); > 78 free(parent2); > 79 free(child2); > 80 > 81 return ret; > 82 } Hello, Dan! Thanks for the report! Just sent the fix. Thanks, Roman -- To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html