Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09c32533 authored by Lucas Stach's avatar Lucas Stach Committed by Joerg Roedel
Browse files

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: default avatarLucas Stach <dev@lynxeye.de>
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 7a31f6f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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));