Skip to content

Commit 0da12a7

Browse files
kvaneeshmpe
authored andcommitted
powerpc/mm/hash: Free the subpage_prot_table correctly
Fixes: dad6f37 ("powerpc: subpage_protect: Increase the array size to take care of 64TB") Signed-off-by: Aneesh Kumar K.V <[email protected]> Tested-by: Ram Pai <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent b40b238 commit 0da12a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/mm/subpage-prot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void subpage_prot_free(struct mm_struct *mm)
3636
}
3737
}
3838
addr = 0;
39-
for (i = 0; i < 2; ++i) {
39+
for (i = 0; i < (TASK_SIZE_USER64 >> 43); ++i) {
4040
p = spt->protptrs[i];
4141
if (!p)
4242
continue;

0 commit comments

Comments
 (0)