diff options
author | Aneesh Kumar K.V | 2017-06-17 16:30:55 +0200 |
---|---|---|
committer | Michael Ellerman | 2017-07-27 05:05:50 +0200 |
commit | 0da12a7a81f1e2255e89dc783c565e84801475a2 (patch) | |
tree | 8eedcff78bb5ae07c0647ed50d0b5f9846b65328 /arch/powerpc | |
parent | powerpc/Makefile: Fix ld version check with 64-bit LE-only toolchain (diff) | |
download | kernel-qcow2-linux-0da12a7a81f1e2255e89dc783c565e84801475a2.tar.gz kernel-qcow2-linux-0da12a7a81f1e2255e89dc783c565e84801475a2.tar.xz kernel-qcow2-linux-0da12a7a81f1e2255e89dc783c565e84801475a2.zip |
powerpc/mm/hash: Free the subpage_prot_table correctly
Fixes: dad6f37c2602e ("powerpc: subpage_protect: Increase the array size to take care of 64TB")
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tested-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/mm/subpage-prot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/subpage-prot.c b/arch/powerpc/mm/subpage-prot.c index e94fbd4c8845..781532d7bc4d 100644 --- a/arch/powerpc/mm/subpage-prot.c +++ b/arch/powerpc/mm/subpage-prot.c @@ -36,7 +36,7 @@ void subpage_prot_free(struct mm_struct *mm) } } addr = 0; - for (i = 0; i < 2; ++i) { + for (i = 0; i < (TASK_SIZE_USER64 >> 43); ++i) { p = spt->protptrs[i]; if (!p) continue; |