[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] AMD IOMMU: spin_uinlock() on early return path.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1217515089 -3600 # Node ID 782c6bddf9be411d7ec30e4fd074d52bf508e320 # Parent 39f2dfacbcadc44a55fcae0678ec0d2f81f4ba61 AMD IOMMU: spin_uinlock() on early return path. Signed-off-by: Wei Wang <wei.wang2@xxxxxxx> --- xen/drivers/passthrough/amd/iommu_init.c | 3 +++ 1 files changed, 3 insertions(+) diff -r 39f2dfacbcad -r 782c6bddf9be xen/drivers/passthrough/amd/iommu_init.c --- a/xen/drivers/passthrough/amd/iommu_init.c Thu Jul 31 15:34:58 2008 +0100 +++ b/xen/drivers/passthrough/amd/iommu_init.c Thu Jul 31 15:38:09 2008 +0100 @@ -477,7 +477,10 @@ void __init enable_iommu(struct amd_iomm spin_lock_irqsave(&iommu->lock, flags); if ( iommu->enabled ) + { + spin_unlock_irqrestore(&iommu->lock, flags); return; + } iommu->dev_table.alloc_size = device_table.alloc_size; iommu->dev_table.entries = device_table.entries; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |