OSDN Git Service

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm...
[tomoyo/tomoyo-test1.git] / kernel / time / posix-cpu-timers.c
index 949e434..1370f06 100644 (file)
@@ -1318,7 +1318,7 @@ static int posix_cpu_nsleep(const clockid_t which_clock, int flags,
         */
        if (CPUCLOCK_PERTHREAD(which_clock) &&
            (CPUCLOCK_PID(which_clock) == 0 ||
-            CPUCLOCK_PID(which_clock) == current->pid))
+            CPUCLOCK_PID(which_clock) == task_pid_vnr(current)))
                return -EINVAL;
 
        error = do_cpu_nanosleep(which_clock, flags, rqtp, &it);