提交 09c32533 编写于 作者: L Lucas Stach 提交者: Joerg Roedel

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: NLucas Stach <dev@lynxeye.de>
Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
上级 7a31f6f4
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册