提交 71dbc8a9 编写于 作者: E Eric W. Biederman

kvm: Don't open code task_pid in kvm_vcpu_ioctl

Signed-off-by: N"Eric W. Biederman" <ebiederm@xmission.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册