mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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]> Signed-off-by: Joerg Roedel <[email protected]>
This commit is contained in:
parent
7a31f6f48b
commit
09c32533c0
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue