Skip to content

Commit

Permalink
iommu/vt-d: Use memunmap to free memremap
Browse files Browse the repository at this point in the history
memunmap() should be used to free the return of memremap(), not
iounmap().

Fixes: dfddb96 ('iommu/vt-d: Switch from ioremap_cache to memremap')
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
Pan Bian authored and Joerg Roedel committed Nov 22, 2018
1 parent ab99be4 commit 829383e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 829383e

Please sign in to comment.