[PATCH 6.12 316/423] riscv: Fix hugetlb retrieval of number of ptes in case of !present pte