sched: fix freeing per-vcpu data in sched_move_domain()
authorJuergen Gross <jgross@suse.com>
Wed, 25 Sep 2019 13:52:53 +0000 (15:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 25 Sep 2019 13:52:53 +0000 (15:52 +0200)
commitb6656e6aa4dd5de537ce07ec16bfbbbb538b28b5
tree557864ae54a16870ca5cfae00eb9c8cedbd1aef5
parent4f54473d0007ad60e0a9fda180213fc8bef1488a
sched: fix freeing per-vcpu data in sched_move_domain()

In case of an allocation error of per-vcpu data in sched_move_domain()
the already allocated data is freed just using xfree(). This is wrong
as some schedulers need to do additional operations (e.g. the arinc653
scheduler needs to remove the vcpu-data from a list).

So instead xfree() make use of the sched_free_vdata() hook.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Dario Faggioli <dfaggioli@suse.com>
xen/common/schedule.c