Commit 71dbc8a9 authored by Eric W. Biederman's avatar Eric W. Biederman

kvm: Don't open code task_pid in kvm_vcpu_ioctl

Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 7a36094d
......@@ -2560,7 +2560,7 @@ static long kvm_vcpu_ioctl(struct file *filp,
if (arg)
goto out;
oldpid = rcu_access_pointer(vcpu->pid);
if (unlikely(oldpid != current->pids[PIDTYPE_PID].pid)) {
if (unlikely(oldpid != task_pid(current))) {
/* The thread running this VCPU changed. */
struct pid *newpid;
......
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