diff options
author | Dominik Dingel <dingel@linux.vnet.ibm.com> | 2015-05-07 15:16:13 +0200 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2015-07-29 10:35:48 +0200 |
commit | 14d4a425e7df6aaaa3287108ce191ccb6644c264 (patch) | |
tree | 9f5fc17b38e10717510961e4ef36507af67c4842 /arch/s390/kvm/kvm-s390.c | |
parent | 5492830370171b6a4ede8a3bfba687a8d0f25fa5 (diff) |
KVM: s390: propagate error from enable storage key
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>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.c')
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index 2078f92d15ac..b77dcfe867be 100644 --- 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); |