From: Heiko Carstens Date: Fri, 4 Apr 2008 13:12:35 +0000 (+0200) Subject: KVM: s390: Fix incorrect return value X-Git-Tag: v2.6.26-rc1~1028^2~49 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7e8e6ab48d78147f69c1ba2d6a362f8d33254468;p=linux-2.6-omap-h63xx.git KVM: s390: Fix incorrect return value kvm_arch_vcpu_ioctl_run currently incorrectly always returns 0. Signed-off-by: Heiko Carstens Signed-off-by: Carsten Otte Signed-off-by: Avi Kivity --- diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index d3b1de83678..d9661376597 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -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,