powerpc/mm/ptdump: Dump the first entry of the linear mapping as well
authorBalbir Singh <bsingharora@gmail.com>
Thu, 25 May 2017 03:36:50 +0000 (13:36 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Jun 2017 09:09:52 +0000 (19:09 +1000)
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>
arch/powerpc/mm/dump_hashpagetable.c

index c6b900f54c07dd417a8c0e33c7353abc71aa11a4..b1c144b03fcf3c448245aec655d84b3c1561f65c 100644 (file)
@@ -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 */