Commit 1393b4aa authored by Paolo Bonzini's avatar Paolo Bonzini

kvm: use more precise cast and do not drop __user

Sparse complains on a call to get_compat_sigset, fix it.  The "if"
right above explains that sigmask_arg->sigset is basically a
compat_sigset_t.
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 6e1d72f1
...@@ -3350,7 +3350,8 @@ static long kvm_vcpu_compat_ioctl(struct file *filp, ...@@ -3350,7 +3350,8 @@ static long kvm_vcpu_compat_ioctl(struct file *filp,
if (kvm_sigmask.len != sizeof(compat_sigset_t)) if (kvm_sigmask.len != sizeof(compat_sigset_t))
goto out; goto out;
r = -EFAULT; r = -EFAULT;
if (get_compat_sigset(&sigset, (void *)sigmask_arg->sigset)) if (get_compat_sigset(&sigset,
(compat_sigset_t __user *)sigmask_arg->sigset))
goto out; goto out;
r = kvm_vcpu_ioctl_set_sigmask(vcpu, &sigset); r = kvm_vcpu_ioctl_set_sigmask(vcpu, &sigset);
} else } else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment