AMD IOMMU: spin_uinlock() on early return path.

Signed-off-by: Wei Wang <wei.wang2@amd.com>
This commit is contained in:
Keir Fraser committed 2008-07-31 15:38:09 +01:00
1 parent 12e36600a0
commit 00a02b0a94
1 file changed
+3
+3
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.