Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

kvm: Don't open code task_pid in kvm_vcpu_ioctl

parent 7a36094d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;