Преглед на файлове

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>
Balbir Singh преди 8 години
родител
ревизия
e63739b168
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      arch/powerpc/mm/dump_hashpagetable.c

+ 1 - 1
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;
 	unsigned long rpn, lp_bits;
 	int base_psize = 0, actual_psize = 0;
 	int base_psize = 0, actual_psize = 0;
 
 
-	if (ea <= PAGE_OFFSET)
+	if (ea < PAGE_OFFSET)
 		return -1;
 		return -1;
 
 
 	/* Look in primary table */
 	/* Look in primary table */