Skip to content
Commit 01a21974 authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

posix-timers: Correct sanity check in posix_cpu_nsleep



CPUCLOCK_PID(which_clock) is a pid value from userspace so compare it
against task_pid_vnr, not current->pid.  As task_pid_vnr is in the tasks
pid value in the tasks pid namespace, and current->pid is in the
initial pid namespace.

Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent b54807fa
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