Commit 5da5a36a authored by Yang Yingliang's avatar Yang Yingliang Committed by Yu Liao
Browse files

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: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarYu Liao <liaoyu15@huawei.com>
parent d4bd6f22
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment