Skip to content

Commit

Permalink
iommu/tegra-gart: fix spin_unlock in map failure path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lucas Stach authored and Joerg Roedel committed Mar 13, 2012
1 parent 7a31f6f commit 09c3253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/tegra-gart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 09c3253

Please sign in to comment.