iommu/tegra-gart: fix spin_unlock in map failure path
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- drivers/iommu/tegra-gart.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/iommu/tegra-gart.c +1 -1
@@ -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));
Signature · 1 line
1.7.7.6
Hi Lucas,
Quoted 4 lines · On Mon, 12 Mar 2012 20:15:01 +0100 Lucas Stach…
This must have been messed up while merging, the intention was clearly to unlock there.
Signed-off-by Lucas Stach <[email protected]>
Good catch. Thanks.
Joerg, Could you put this one on your queue?
Joerg Roedel
AppliedQuoted 4 lines · Lucas Stach
This must have been messed up while merging, the intention was clearly to unlock there.
Signed-off-by Lucas Stach <[email protected]>
Applied to arm/tegra, thanks Lucas. Hope to see you in Chemnitz this weekend :-)