vpci/msi: fix unbind loop
authorRoger Pau Monné <roger.pau@citrix.com>
Wed, 16 May 2018 14:28:46 +0000 (16:28 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 16 May 2018 14:28:46 +0000 (16:28 +0200)
commita65179dedd6415134029de00a17c218af647fb1a
tree1428467ae8b56c5a0a35776585f5d1df8a4bf4d0
parent3352afc26c497d26ecb70527db3cb29daf7b1422
vpci/msi: fix unbind loop

The current unbind loop on failure in vpci_msi_enable is wrong and
will only work correctly if the initial pirq is 0. Fix this by adding
a proper bound.

Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/hvm/vmsi.c