From: Balbir Singh Date: Thu, 25 May 2017 03:36:50 +0000 (+1000) Subject: powerpc/mm/ptdump: Dump the first entry of the linear mapping as well X-Git-Tag: v4.13-rc1~111^2~130 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=e63739b1687ea37390e5463f43d0547477d324e3;p=linux.git 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 Signed-off-by: Michael Ellerman --- 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 */