s390/mm: don't drop errors in get_guest_storage_key
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Tue, 10 May 2016 11:51:54 +0000 (13:51 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 10 Jun 2016 10:07:26 +0000 (12:07 +0200)
commitc427c42cd612719e8fb8b5891cc9761e7770024e
tree425457f6b7c1d1cbaa97f5e2b894c1db34523db0
parentdcc98ea6146e4da27eee2f3e9983500e9618cc23
s390/mm: don't drop errors in get_guest_storage_key

Commit 1e133ab296f3 ("s390/mm: split arch/s390/mm/pgtable.c") changed
the return value of get_guest_storage_key to an unsigned char, resulting
in -EFAULT getting interpreted as a valid storage key.

Cc: stable@vger.kernel.org # 4.6+
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/pgtable.h
arch/s390/mm/pgtable.c