aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorYu Miao <yumiao@kylinos.cn>2026-05-13 10:39:07 +0800
committerTejun Heo <tj@kernel.org>2026-05-13 08:40:52 -1000
commit7d8f3158a51cb40fc710d2a781549141a139b796 (patch)
treea11cee7e4edaf151928ca083230ab50ca0b3ce1e /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com
parentcgroup/cpuset: Reserve DL bandwidth only for root-domain moves (diff)
selftests/cgroup: Fix error path leaks in test_percpu_basic
When cg_name_indexed() returns NULL partway through the child creation loop, the code returned -1 without running cleanup_children and cleanup. That left the `parent` pathname allocation unreleased and did not remove child cgroup directories already created under the parent. Fix by jumping to cleanup_children instead of returning. When cg_create() fails, `child` (the pathname from cg_name_indexed()) was not freed before cleanup_children. Fix by freeing `child` before branching to cleanup_children. Fixes: 90631e1dea55 ("kselftests: cgroup: add perpcu memory accounting test") Signed-off-by: Yu Miao <yumiao@kylinos.cn> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions