mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
AMD/IOMMU: don't leave page table mapped when unmapping ...
... an already not mapped page. With all other exit paths doing the unmap, I have no idea how I managed to miss that aspect at the time. Fixes:ad591454f0("AMD/IOMMU: don't needlessly trigger errors/crashes when unmapping a page") Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Paul Durrant <paul@xen.org> master commit:3cfec6a6aamaster date: 2021-08-20 12:30:35 +0200
This commit is contained in:
1 parent
da72547388
commit
301ea7a89d
1 file changed
+3
@@ -256,7 +256,10 @@ static int iommu_pde_from_dfn(struct domain *d, unsigned long dfn,
|
||||
else if ( !pde->pr )
|
||||
{
|
||||
if ( !map )
|
||||
{
|
||||
unmap_domain_page(next_table_vaddr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ( next_table_mfn == 0 )
|
||||
{
|
||||
|
||||