summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRashmica Gupta <rashmica.g@gmail.com>2019-02-13 10:29:49 +1100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-27 14:46:24 +0100
commit43f5a75119f6d03f88b6c59ca2745934d72ea698 (patch)
treee2473b29fbaae359296b6bd54b1f9e1d529a5820 /arch
parent3b24a4144fbd078e6665ba8c64e6611eb14cecc5 (diff)
downloadlinux-stable-43f5a75119f6d03f88b6c59ca2745934d72ea698.tar.gz
linux-stable-43f5a75119f6d03f88b6c59ca2745934d72ea698.tar.bz2
linux-stable-43f5a75119f6d03f88b6c59ca2745934d72ea698.zip
powerpc/mm: Check secondary hash page table
[ Upstream commit 790845e2f12709d273d08ea7a2af7c2593689519 ] We were always calling base_hpte_find() with primary = true, even when we wanted to check the secondary table. mpe: I broke this when refactoring Rashmica's original patch. Fixes: 1515ab932156 ("powerpc/mm: Dump hash table") Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/mm/dump_hashpagetable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/dump_hashpagetable.c b/arch/powerpc/mm/dump_hashpagetable.c
index 5c4c93dcff19..f666d74f05f5 100644
--- a/arch/powerpc/mm/dump_hashpagetable.c
+++ b/arch/powerpc/mm/dump_hashpagetable.c
@@ -343,7 +343,7 @@ static unsigned long hpte_find(struct pg_state *st, unsigned long ea, int psize)
/* Look in secondary table */
if (slot == -1)
- slot = base_hpte_find(ea, psize, true, &v, &r);
+ slot = base_hpte_find(ea, psize, false, &v, &r);
/* No entry found */
if (slot == -1)