]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
s390/fault: use _ASCE_ORIGIN instead of PAGE_MASK
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 22 May 2017 11:16:00 +0000 (13:16 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 12 Jun 2017 14:25:59 +0000 (16:25 +0200)
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 <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/fault.c

index 5845d3028ffca9dd4e96496423c5a943f083781e..14f25798b001ca770ccb8ae63099ce9f86f988c8 100644 (file)
@@ -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) {