s390/mm: return key via pointer in get_guest_storage_key
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Mon, 9 May 2016 09:22:34 +0000 (11:22 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 10 Jun 2016 10:07:28 +0000 (12:07 +0200)
commit154c8c19c35b6da94a623cb793458e203572083d
tree9ca37ad9fa34d1495bb1c770b035192c87a15854
parent8d6037a7b4f21708451d4aec14828f9ebe77b37a
s390/mm: return key via pointer in get_guest_storage_key

Let's just split returning the key and reporting errors. This makes calling
code easier and avoids bugs as happened already.

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/kvm/kvm-s390.c
arch/s390/mm/pgtable.c