diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2013-05-05 09:05:34 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2013-05-05 09:05:34 +0000 |
commit | f7a87c42a05e5ecaa4ed9167178624f870106091 (patch) | |
tree | c979afdf6c421480e651be46699f4928686bea39 | |
parent | 120dc38f6113b676ecef0a2c9e42fc08cace5bdb (diff) | |
parent | 536f25e4c77592b936e50728c83894c23f4f61c8 (diff) |
Merge branch 'target-arm.next' of git://git.linaro.org/people/pmaydell/qemu-arm
* 'target-arm.next' of git://git.linaro.org/people/pmaydell/qemu-arm:
target-arm: Fix incorrect check of kvm_vcpu_ioctl return value
-rw-r--r-- | target-arm/kvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-arm/kvm.c b/target-arm/kvm.c index d8acace9b7..b7bdc034fd 100644 --- a/target-arm/kvm.c +++ b/target-arm/kvm.c @@ -62,8 +62,8 @@ int kvm_arch_init_vcpu(CPUState *cs) r.id = KVM_REG_ARM | KVM_REG_SIZE_U64 | KVM_REG_ARM_VFP | 31; r.addr = (uintptr_t)(&v); ret = kvm_vcpu_ioctl(cs, KVM_GET_ONE_REG, &r); - if (ret == ENOENT) { - return EINVAL; + if (ret == -ENOENT) { + return -EINVAL; } return ret; } |