aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm/intercept.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/kvm/intercept.c')
-rw-r--r--arch/s390/kvm/intercept.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kvm/intercept.c b/arch/s390/kvm/intercept.c
index f26ff1e31bdb..9b2204759445 100644
--- a/arch/s390/kvm/intercept.c
+++ b/arch/s390/kvm/intercept.c
@@ -45,7 +45,7 @@ static int handle_lctlg(struct kvm_vcpu *vcpu)
45 do { 45 do {
46 rc = get_guest_u64(vcpu, useraddr, 46 rc = get_guest_u64(vcpu, useraddr,
47 &vcpu->arch.sie_block->gcr[reg]); 47 &vcpu->arch.sie_block->gcr[reg]);
48 if (rc == -EFAULT) { 48 if (rc) {
49 kvm_s390_inject_program_int(vcpu, PGM_ADDRESSING); 49 kvm_s390_inject_program_int(vcpu, PGM_ADDRESSING);
50 break; 50 break;
51 } 51 }
@@ -79,7 +79,7 @@ static int handle_lctl(struct kvm_vcpu *vcpu)
79 reg = reg1; 79 reg = reg1;
80 do { 80 do {
81 rc = get_guest_u32(vcpu, useraddr, &val); 81 rc = get_guest_u32(vcpu, useraddr, &val);
82 if (rc == -EFAULT) { 82 if (rc) {
83 kvm_s390_inject_program_int(vcpu, PGM_ADDRESSING); 83 kvm_s390_inject_program_int(vcpu, PGM_ADDRESSING);
84 break; 84 break;
85 } 85 }