From: Lucas Stach Date: Mon, 12 Mar 2012 19:15:01 +0000 (+0100) Subject: iommu/tegra-gart: fix spin_unlock in map failure path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=09c32533c064782a7989b6fecce776833bca0e12;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Joerg Roedel --- 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, 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));