[S390] fix page table walk for changing page attributes

The page table walk for changing page attributes used the wrong
address for pgd/pud/pmd lookups if the range was bigger than
a pmd entry. Fix the lookup by using the correct address.

Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by Jan Glauber and committed by Martin Schwidefsky e4c031b4 c708c57e

+3 -2
+3 -2
arch/s390/mm/pageattr.c
··· 24 24 WARN_ON_ONCE(1); 25 25 continue; 26 26 } 27 - ptep = pte_offset_kernel(pmdp, addr + i * PAGE_SIZE); 27 + ptep = pte_offset_kernel(pmdp, addr); 28 28 29 29 pte = *ptep; 30 30 pte = set(pte); 31 - ptep_invalidate(&init_mm, addr + i * PAGE_SIZE, ptep); 31 + ptep_invalidate(&init_mm, addr, ptep); 32 32 *ptep = pte; 33 + addr += PAGE_SIZE; 33 34 } 34 35 } 35 36