aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2012-03-12 15:15:01 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2012-03-13 06:17:42 -0400
commit09c32533c064782a7989b6fecce776833bca0e12 (patch)
treed9e0c59ced7eb9bd696050c3543d9e76754a0b08 /drivers/iommu
parent7a31f6f48bb6e37b3195fcecd69d30740f6b0036 (diff)
iommu/tegra-gart: fix spin_unlock in map failure path
This must have been messed up while merging, the intention was clearly to unlock there. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/tegra-gart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/tegra-gart.c b/drivers/iommu/tegra-gart.c
index b21598fc2628..779306ee7b16 100644
--- a/drivers/iommu/tegra-gart.c
+++ b/drivers/iommu/tegra-gart.c
@@ -246,7 +246,7 @@ static int gart_iommu_map(struct iommu_domain *domain, unsigned long iova,
246 pfn = __phys_to_pfn(pa); 246 pfn = __phys_to_pfn(pa);
247 if (!pfn_valid(pfn)) { 247 if (!pfn_valid(pfn)) {
248 dev_err(gart->dev, "Invalid page: %08x\n", pa); 248 dev_err(gart->dev, "Invalid page: %08x\n", pa);
249 spin_lock_irqsave(&gart->pte_lock, flags); 249 spin_unlock_irqrestore(&gart->pte_lock, flags);
250 return -EINVAL; 250 return -EINVAL;
251 } 251 }
252 gart_set_pte(gart, iova, GART_PTE(pfn)); 252 gart_set_pte(gart, iova, GART_PTE(pfn));