summaryrefslogtreecommitdiff
path: root/xen/drivers/passthrough/iommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'xen/drivers/passthrough/iommu.c')
-rw-r--r--xen/drivers/passthrough/iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/drivers/passthrough/iommu.c b/xen/drivers/passthrough/iommu.c
index ba32f9af21..ea5d0468e7 100644
--- a/xen/drivers/passthrough/iommu.c
+++ b/xen/drivers/passthrough/iommu.c
@@ -77,7 +77,7 @@ void iommu_domain_destroy(struct domain *d)
{
for ( i = 0; i < NR_IRQS; i++ )
{
- if ( !hvm_irq_dpci->mirq[i].valid )
+ if ( !(hvm_irq_dpci->mirq[i].flags & HVM_IRQ_DPCI_VALID) )
continue;
pirq_guest_unbind(d, i);