ia64/xen-unstable

changeset 18245:a215b2ee4aa6

vtd: Fix a missing spin_unlock_irqrestore()

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Aug 04 11:12:15 2008 +0100 (2008-08-04)
parents 901d619b18f2
children 404571b0b169
files xen/drivers/passthrough/vtd/iommu.c
line diff
     1.1 --- a/xen/drivers/passthrough/vtd/iommu.c	Mon Aug 04 11:11:24 2008 +0100
     1.2 +++ b/xen/drivers/passthrough/vtd/iommu.c	Mon Aug 04 11:12:15 2008 +0100
     1.3 @@ -632,7 +632,10 @@ static int iommu_set_root_entry(struct i
     1.4  
     1.5      iommu->root_maddr = alloc_pgtable_maddr();
     1.6      if ( iommu->root_maddr == 0 )
     1.7 +    {
     1.8 +        spin_unlock_irqrestore(&iommu->register_lock, flags);
     1.9          return -ENOMEM;
    1.10 +    }
    1.11  
    1.12      dmar_writeq(iommu->reg, DMAR_RTADDR_REG, iommu->root_maddr);
    1.13      cmd = iommu->gcmd | DMA_GCMD_SRTP;