diff options
author | Lucas Stach <dev@lynxeye.de> | 2012-03-12 20:15:01 +0100 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-04-16 03:51:31 -0700 |
commit | 868e86c9fcca509bf4c1c9378721a3a0965c5ebc (patch) | |
tree | 3d0feaca483f0d2fff6b9cb2d1a50dd144d86a8f /drivers/iommu | |
parent | 6104c306648175cd8e17745e82955511e4ec3f43 (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.
Change-Id: Icf525a51d4899dc718710ec56a4d3fd2150501cd
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/96139
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/tegra-gart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/tegra-gart.c b/drivers/iommu/tegra-gart.c index c33557ce5a67..618f1bf52780 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, pfn = __phys_to_pfn(pa); if (!pfn_valid(pfn)) { dev_err(gart->dev, "Invalid page: %08x\n", pa); - spin_lock_irqsave(&gart->pte_lock, flags); + spin_unlock_irqrestore(&gart->pte_lock, flags); return -EINVAL; } gart_set_pte(gart, iova, GART_PTE(pfn)); |