[PATCHSET sched_ext/for-7.1] sched_ext: Fix kobject and cgroup ref error handling in scx_alloc_and_add_sched()

From: Tejun Heo

Date: Mon Mar 16 2026 - 01:43:39 EST


Hello,

Fix error handling bugs in scx_alloc_and_add_sched():

0001 sched_ext: Fix cgroup double-put on sub-sched abort path
0002 sched_ext: Use kobject_put() for kobject_init_and_add() failure in scx_alloc_and_add_sched()

Based on sched_ext/for-7.1 (f96bc0fa92be).

kernel/sched/ext.c | 46 ++++++++++++++++++++++++++++------------------
1 file changed, 28 insertions(+), 18 deletions(-)

--
tejun