mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +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>
This commit is contained in:
1 parent
5ffd37db2f
commit
3cfec6a6aa
1 file changed
+3
@@ -243,7 +243,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 )
|
||||
{
|
||||
|
||||