projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a36094
)
kvm: Don't open code task_pid in kvm_vcpu_ioctl
author
Eric W. Biederman
<ebiederm@xmission.com>
Mon, 17 Jul 2017 02:39:32 +0000
(21:39 -0500)
committer
Eric W. Biederman
<ebiederm@xmission.com>
Sat, 21 Jul 2018 15:43:12 +0000
(10:43 -0500)
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
virt/kvm/kvm_main.c
patch
|
blob
|
history
diff --git
a/virt/kvm/kvm_main.c
b/virt/kvm/kvm_main.c
index
ada21f4
..
4c593ac
100644
(file)
--- a/
virt/kvm/kvm_main.c
+++ b/
virt/kvm/kvm_main.c
@@
-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;