From: Pan Bian Date: Wed, 21 Nov 2018 09:53:47 +0000 (+0800) Subject: iommu/vt-d: Use memunmap to free memremap X-Git-Tag: v4.14.88~43 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=84f49bb07f9d8f48891976229a6eaed9e1a4d6ca;p=users%2Fjedix%2Flinux-maple.git iommu/vt-d: Use memunmap to free memremap [ Upstream commit 829383e183728dec7ed9150b949cd6de64127809 ] memunmap() should be used to free the return of memremap(), not iounmap(). Fixes: dfddb969edf0 ('iommu/vt-d: Switch from ioremap_cache to memremap') Signed-off-by: Pan Bian Signed-off-by: Joerg Roedel Signed-off-by: Sasha Levin --- diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index aaf3fed974771..e86c1c8ec7f6d 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -3086,7 +3086,7 @@ static int copy_context_table(struct intel_iommu *iommu, } if (old_ce) - iounmap(old_ce); + memunmap(old_ce); ret = 0; if (devfn < 0x80)