|
@@ -1386,8 +1386,7 @@ static int wait_task_stopped(struct wait_opts *wo,
|
|
if (!unlikely(wo->wo_flags & WNOWAIT))
|
|
if (!unlikely(wo->wo_flags & WNOWAIT))
|
|
*p_code = 0;
|
|
*p_code = 0;
|
|
|
|
|
|
- /* don't need the RCU readlock here as we're holding a spinlock */
|
|
|
|
- uid = __task_cred(p)->uid;
|
|
|
|
|
|
+ uid = task_uid(p);
|
|
unlock_sig:
|
|
unlock_sig:
|
|
spin_unlock_irq(&p->sighand->siglock);
|
|
spin_unlock_irq(&p->sighand->siglock);
|
|
if (!exit_code)
|
|
if (!exit_code)
|
|
@@ -1460,7 +1459,7 @@ static int wait_task_continued(struct wait_opts *wo, struct task_struct *p)
|
|
}
|
|
}
|
|
if (!unlikely(wo->wo_flags & WNOWAIT))
|
|
if (!unlikely(wo->wo_flags & WNOWAIT))
|
|
p->signal->flags &= ~SIGNAL_STOP_CONTINUED;
|
|
p->signal->flags &= ~SIGNAL_STOP_CONTINUED;
|
|
- uid = __task_cred(p)->uid;
|
|
|
|
|
|
+ uid = task_uid(p);
|
|
spin_unlock_irq(&p->sighand->siglock);
|
|
spin_unlock_irq(&p->sighand->siglock);
|
|
|
|
|
|
pid = task_pid_vnr(p);
|
|
pid = task_pid_vnr(p);
|