File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -492,18 +492,18 @@ static void v1_free_pgtable(struct io_pgtable *iop)
492
492
493
493
dom = container_of (pgtable , struct protection_domain , iop );
494
494
495
- /* Update data structure */
496
- amd_iommu_domain_clr_pt_root (dom );
497
-
498
- /* Make changes visible to IOMMUs */
499
- amd_iommu_domain_update (dom );
500
-
501
495
/* Page-table is not visible to IOMMU anymore, so free it */
502
496
BUG_ON (pgtable -> mode < PAGE_MODE_NONE ||
503
497
pgtable -> mode > PAGE_MODE_6_LEVEL );
504
498
505
499
free_sub_pt (pgtable -> root , pgtable -> mode , & freelist );
506
500
501
+ /* Update data structure */
502
+ amd_iommu_domain_clr_pt_root (dom );
503
+
504
+ /* Make changes visible to IOMMUs */
505
+ amd_iommu_domain_update (dom );
506
+
507
507
put_pages_list (& freelist );
508
508
}
509
509
You can’t perform that action at this time.
0 commit comments