Message ID | 4AEEFDC2.4010808@siemens.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 1f68798..dd229b6 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -2577,14 +2577,11 @@ long kvm_arch_vm_ioctl(struct file *filp, ktime_get_ts(&now); now_ns = timespec_to_ns(&now); user_ns.clock = kvm->arch.kvmclock_offset + now_ns; + user_ns.flags = 0; if (copy_to_user(argp, &user_ns, sizeof(user_ns))) r = -EFAULT; - r = -EINVAL; - if (user_ns.flags) - goto out; - break; }