diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index b6307545124c8570498282544a76720b9074a483..ea49fe8140260944af6f0ff36a6b884fa7d24caa 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -842,6 +842,8 @@ int iommu_map(struct iommu_domain *domain, unsigned long iova, /* unroll mapping in case something went wrong */ if (ret) iommu_unmap(domain, orig_iova, orig_size - size); + else + trace_map(iova, paddr, size); return ret; }