]> xenbits.xensource.com Git - xen.git/commit
ioreq: fix hvm_all_ioreq_servers_add_vcpu fail path cleanup
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 10 Sep 2019 14:32:47 +0000 (16:32 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 10 Sep 2019 14:32:47 +0000 (16:32 +0200)
commit215f2576b0ac1bc18f3ff74e34f0d8379bda9040
tree64abbde56231d9b3dce7f24bc6660ad88cea12d5
parent2cf41696950719fae260c05d47fb0c7548a990e1
ioreq: fix hvm_all_ioreq_servers_add_vcpu fail path cleanup

The loop in FOR_EACH_IOREQ_SERVER is backwards hence the cleanup on
failure needs to be done forwards.

Fixes: 97a5a3e30161 ('x86/hvm/ioreq: maintain an array of ioreq servers rather than a list')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
xen/arch/x86/hvm/ioreq.c