]> xenbits.xensource.com Git - xen.git/commit
sched: fix error path in cpupool_unassign_cpu_start()
authorJuergen Gross <jgross@suse.com>
Tue, 3 Mar 2020 15:02:32 +0000 (16:02 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 3 Mar 2020 15:02:32 +0000 (16:02 +0100)
commit98ed1f43cc2c89efd38deed1035dba5b1ced5d45
tree6bc77eb4069e92fee49f6ece56e23a523353607a
parent8824fd3871a2ded6bee0f48785bf539aff46a771
sched: fix error path in cpupool_unassign_cpu_start()

In case moving away all domains from the cpu to be removed is failing
in cpupool_unassign_cpu_start() the error path is missing to release
sched_res_rculock.

The normal exit path is releasing domlist_read_lock instead (this is
currently no problem as the reference to the specific rcu lock is not
used by rcu_read_unlock()).

While at it indent the present error label by one space.

Reported-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Dario Faggioli <dfaggioli@suse.com>
xen/common/sched/cpupool.c