projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5492830
)
KVM: s390: propagate error from enable storage key
author
Dominik Dingel
<dingel@linux.vnet.ibm.com>
Thu, 7 May 2015 13:16:13 +0000
(15:16 +0200)
committer
Christian Borntraeger
<borntraeger@de.ibm.com>
Wed, 29 Jul 2015 08:35:48 +0000
(10:35 +0200)
As enabling storage keys might fail, we should forward the error.
Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c
patch
|
blob
|
history
diff --git
a/arch/s390/kvm/kvm-s390.c
b/arch/s390/kvm/kvm-s390.c
index 2078f92d15ac90adcfec617b46df750e073b76d0..b77dcfe867bec5614ba3d033a72eed4442b28585 100644
(file)
--- a/
arch/s390/kvm/kvm-s390.c
+++ b/
arch/s390/kvm/kvm-s390.c
@@
-821,7
+821,9
@@
static long kvm_s390_set_skeys(struct kvm *kvm, struct kvm_s390_skeys *args)
}
/* Enable storage key handling for the guest */
- s390_enable_skey();
+ r = s390_enable_skey();
+ if (r)
+ goto out;
for (i = 0; i < args->count; i++) {
hva = gfn_to_hva(kvm, args->start_gfn + i);