diff options
| author | Guopeng Zhang <zhangguopeng@kylinos.cn> | 2026-05-28 17:37:42 +0800 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-05-29 08:23:18 -1000 |
| commit | 390f2d73bc99a888469f789f274c162da33bafe5 (patch) | |
| tree | 9c9bea865e819f93088727080c01b2cb92580230 /include/linux/zstd_errors.h | |
| parent | 336f87d742a616236006bb77275f79a3ac101637 (diff) | |
cgroup/cpuset: Free sched domains on rebuild guard failure
generate_sched_domains() returns sched-domain masks and optional
attributes that are normally handed to partition_sched_domains(), which
takes ownership of them.
rebuild_sched_domains_locked() has a WARN guard after
generate_sched_domains() and before partition_sched_domains() to avoid
passing offline CPUs into the scheduler domain rebuild path. If that
guard fires, the function currently returns directly without freeing
the generated doms and attr.
Free the generated sched-domain masks and attributes before returning
from the guard failure path.
Signed-off-by: Guopeng Zhang <zhangguopeng@kylinos.cn>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/zstd_errors.h')
0 files changed, 0 insertions, 0 deletions
