Skip to content

Commit

Permalink
KVM: s390: Fix incorrect return value
Browse files Browse the repository at this point in the history
kvm_arch_vcpu_ioctl_run currently incorrectly always returns 0.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
  • Loading branch information
Heiko Carstens authored and Avi Kivity committed Apr 27, 2008
1 parent bed1d1d commit 7e8e6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/kvm/kvm-s390.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
vcpu_put(vcpu);

vcpu->stat.exit_userspace++;
return 0;
return rc;
}

static int __guestcopy(struct kvm_vcpu *vcpu, u64 guestdest, const void *from,
Expand Down

0 comments on commit 7e8e6ab

Please sign in to comment.