File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1049,29 +1049,34 @@ static void __init destroy_args(struct pgtable_debug_args *args)
10491049
10501050 /* Free page table entries */
10511051 if (args -> start_ptep ) {
1052+ pmd_clear (args -> pmdp );
10521053 pte_free (args -> mm , args -> start_ptep );
10531054 mm_dec_nr_ptes (args -> mm );
10541055 }
10551056
10561057 if (args -> start_pmdp ) {
1058+ pud_clear (args -> pudp );
10571059 pmd_free (args -> mm , args -> start_pmdp );
10581060 mm_dec_nr_pmds (args -> mm );
10591061 }
10601062
10611063 if (args -> start_pudp ) {
1064+ p4d_clear (args -> p4dp );
10621065 pud_free (args -> mm , args -> start_pudp );
10631066 mm_dec_nr_puds (args -> mm );
10641067 }
10651068
1066- if (args -> start_p4dp )
1069+ if (args -> start_p4dp ) {
1070+ pgd_clear (args -> pgdp );
10671071 p4d_free (args -> mm , args -> start_p4dp );
1072+ }
10681073
10691074 /* Free vma and mm struct */
10701075 if (args -> vma )
10711076 vm_area_free (args -> vma );
10721077
10731078 if (args -> mm )
1074- mmdrop (args -> mm );
1079+ mmput (args -> mm );
10751080}
10761081
10771082static struct page * __init
You can’t perform that action at this time.
0 commit comments