Commit 829383e1 authored by Pan Bian's avatar Pan Bian Committed by Joerg Roedel
Browse files

iommu/vt-d: Use memunmap to free memremap



memunmap() should be used to free the return of memremap(), not
iounmap().

Fixes: dfddb969 ('iommu/vt-d: Switch from ioremap_cache to memremap')
Signed-off-by: default avatarPan Bian <bianpan2016@163.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent ab99be46
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3075,7 +3075,7 @@ static int copy_context_table(struct intel_iommu *iommu,
			}

			if (old_ce)
				iounmap(old_ce);
				memunmap(old_ce);

			ret = 0;
			if (devfn < 0x80)