mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
cpuset: fix missing error return in update_cpumask
The commitc636673980("cpuset: refactor cpus_allowed_validate_change") inadvertently removed the error return when cpus_allowed_validate_change() fails. This patch restores the proper error handling by returning retval when the validation check fails. Fixes:c636673980("cpuset: refactor cpus_allowed_validate_change") Signed-off-by: Chen Ridong <chenridong@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
59d5de3655
commit
51840f7ba3
|
|
@ -2515,7 +2515,8 @@ static int update_cpumask(struct cpuset *cs, struct cpuset *trialcs,
|
|||
compute_trialcs_excpus(trialcs, cs);
|
||||
trialcs->prs_err = PERR_NONE;
|
||||
|
||||
if (cpus_allowed_validate_change(cs, trialcs, &tmp) < 0)
|
||||
retval = cpus_allowed_validate_change(cs, trialcs, &tmp);
|
||||
if (retval < 0)
|
||||
goto out_free;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user