[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] vtd: Fix a missing spin_unlock_irqrestore()



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1217844735 -3600
# Node ID a215b2ee4aa6b7307a7af9ac55009c81fe0589a8
# Parent  901d619b18f22e40c7388f3dd0c6fc766379f2f2
vtd: Fix a missing spin_unlock_irqrestore()

Signed-off-by: Dexuan Cui <dexuan.cui@xxxxxxxxx>
---
 xen/drivers/passthrough/vtd/iommu.c |    3 +++
 1 files changed, 3 insertions(+)

diff -r 901d619b18f2 -r a215b2ee4aa6 xen/drivers/passthrough/vtd/iommu.c
--- a/xen/drivers/passthrough/vtd/iommu.c       Mon Aug 04 11:11:24 2008 +0100
+++ b/xen/drivers/passthrough/vtd/iommu.c       Mon Aug 04 11:12:15 2008 +0100
@@ -632,7 +632,10 @@ static int iommu_set_root_entry(struct i
 
     iommu->root_maddr = alloc_pgtable_maddr();
     if ( iommu->root_maddr == 0 )
+    {
+        spin_unlock_irqrestore(&iommu->register_lock, flags);
         return -ENOMEM;
+    }
 
     dmar_writeq(iommu->reg, DMAR_RTADDR_REG, iommu->root_maddr);
     cmd = iommu->gcmd | DMA_GCMD_SRTP;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.