mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
AMD IOMMU: spin_uinlock() on early return path.
Signed-off-by: Wei Wang <wei.wang2@amd.com>
This commit is contained in:
1 parent
12e36600a0
commit
00a02b0a94
1 file changed
+3
@@ -477,7 +477,10 @@ void __init enable_iommu(struct amd_iommu *iommu)
|
||||
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;
|
||||
|
||||