sched/smt: fix unbalance sched_smt_present dec/inc
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7YBSW CVE: NA -------------------------------- If cpuset_cpu_inactive() fails in sched_cpu_deactivate(), the cpu offline failed, but sched_smt_present is decreased before calling sched_cpu_deactivate, it leads unbalance dec/inc, so fix it by increasing sched_smt_present in the error path. Signed-off-by:Yang Yingliang <yangyingliang@huawei.com> Signed-off-by:
Yu Liao <liaoyu15@huawei.com>
Loading
Please sign in to comment