Merge "prctl: make PR_SET_TIMERSLACK_PID pid namespace aware"
diff --git a/kernel/sys.c b/kernel/sys.c
index 2f95158..7d01c44 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -2129,11 +2129,11 @@
 			error = prctl_set_vma(arg2, arg3, arg4, arg5);
 			break;
 		case PR_SET_TIMERSLACK_PID:
-			if (current->pid != (pid_t)arg3 &&
+			if (task_pid_vnr(current) != (pid_t)arg3 &&
 					!capable(CAP_SYS_NICE))
 				return -EPERM;
 			rcu_read_lock();
-			tsk = find_task_by_pid_ns((pid_t)arg3, &init_pid_ns);
+			tsk = find_task_by_vpid((pid_t)arg3);
 			if (tsk == NULL) {
 				rcu_read_unlock();
 				return -EINVAL;