Skip to content

Commit

Permalink
s390/fault: use _ASCE_ORIGIN instead of PAGE_MASK
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
  • Loading branch information
heicarst authored and Martin Schwidefsky committed Jun 12, 2017
1 parent dbed23d commit fe7b274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fe7b274

Please sign in to comment.