summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm
diff options
context:
space:
mode:
authorBalbir Singh2017-05-25 05:36:50 +0200
committerMichael Ellerman2017-06-02 11:09:52 +0200
commite63739b1687ea37390e5463f43d0547477d324e3 (patch)
treec9cd77281d81e66d05f0b35dfa607cebaf5c415b /arch/powerpc/mm
parentpowerpc: Link warning for orphan sections (diff)
downloadkernel-qcow2-linux-e63739b1687ea37390e5463f43d0547477d324e3.tar.gz
kernel-qcow2-linux-e63739b1687ea37390e5463f43d0547477d324e3.tar.xz
kernel-qcow2-linux-e63739b1687ea37390e5463f43d0547477d324e3.zip
powerpc/mm/ptdump: Dump the first entry of the linear mapping as well
The check in hpte_find() should be < and not <= for PAGE_OFFSET Signed-off-by: Balbir Singh <bsingharora@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm')
-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 c6b900f54c07..b1c144b03fcf 100644
--- a/arch/powerpc/mm/dump_hashpagetable.c
+++ b/arch/powerpc/mm/dump_hashpagetable.c
@@ -335,7 +335,7 @@ static unsigned long hpte_find(struct pg_state *st, unsigned long ea, int psize)
unsigned long rpn, lp_bits;
int base_psize = 0, actual_psize = 0;
- if (ea <= PAGE_OFFSET)
+ if (ea < PAGE_OFFSET)
return -1;
/* Look in primary table */