Skip to content

Commit

Permalink
iommu/vt-d: Use memunmap to free memremap
Browse files Browse the repository at this point in the history
[ Upstream commit 829383e183728dec7ed9150b949cd6de64127809 ]

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 <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
SinkFinder authored and gregkh committed Dec 13, 2018
1 parent 94d9bef commit 782d0b8
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 @@ -3054,7 +3054,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 782d0b8

Please sign in to comment.