|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH][vtd] Fix a missing spin_unlock_irqrestore()
diff -r f69a23b209c4 xen/drivers/passthrough/vtd/iommu.c
--- a/xen/drivers/passthrough/vtd/iommu.c Fri Aug 01 15:38:07 2008
+0100
+++ b/xen/drivers/passthrough/vtd/iommu.c Mon Aug 04 17:55:53 2008
+0800
@@ -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;
Signed-off-by: Dexuan Cui <dexuan.cui@xxxxxxxxx>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH][vtd] Fix a missing spin_unlock_irqrestore(),
Cui, Dexuan <=
|
|
|
|
|