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)
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>

No differences found