s390/pgtable: Fix check for pgste/storage key handling
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 27 May 2013 14:19:55 +0000 (16:19 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 28 May 2013 13:18:05 +0000 (15:18 +0200)
commitb56433cb782d1cc7e44fc46d2ce3917fa75d2236
tree4ef2bf321a213f0c5ad70c2967a2c5b94a82a8a5
parentd5b4c2f4938aaebc392669111385c3cf50dd309f
s390/pgtable: Fix check for pgste/storage key handling

pte_present might return true on PAGE_TYPE_NONE, even if
the invalid bit is on. Modify the existing check of the
pgste functions to avoid crashes.

[ Martin Schwidefsky: added ptep_modify_prot_[start|commit] bits ]

Reported-by: Martin Schwidefky <schwidefsky@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
CC: stable@vger.kernel.org
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/pgtable.h