From: Heiko Carstens Date: Mon, 22 May 2017 11:16:00 +0000 (+0200) Subject: s390/fault: use _ASCE_ORIGIN instead of PAGE_MASK X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fe7b274729fc0bab9b4238f875695d36726a6b10;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git s390/fault: use _ASCE_ORIGIN instead of PAGE_MASK When masking an ASCE to get its origin use the corresponding define instead of the unrelated PAGE_MASK. This doesn't fix a bug since both masks are identical. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c index 5845d3028ffc..14f25798b001 100644 --- a/arch/s390/mm/fault.c +++ b/arch/s390/mm/fault.c @@ -130,7 +130,7 @@ static int bad_address(void *p) static void dump_pagetable(unsigned long asce, unsigned long address) { - unsigned long *table = __va(asce & PAGE_MASK); + unsigned long *table = __va(asce & _ASCE_ORIGIN); pr_alert("AS:%016lx ", asce); switch (asce & _ASCE_TYPE_MASK) {