Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e63739b1 authored by Balbir Singh's avatar Balbir Singh Committed by Michael Ellerman
Browse files

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: default avatarBalbir Singh <bsingharora@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 83a092cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */