aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/ptrace.c')
-rw-r--r--kernel/ptrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index 4559e84f4b8a..e950805f8630 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -178,7 +178,7 @@ int ptrace_attach(struct task_struct *task)
178 /* Protect exec's credential calculations against our interference; 178 /* Protect exec's credential calculations against our interference;
179 * SUID, SGID and LSM creds get determined differently under ptrace. 179 * SUID, SGID and LSM creds get determined differently under ptrace.
180 */ 180 */
181 retval = mutex_lock_interruptible(&current->cred_exec_mutex); 181 retval = mutex_lock_interruptible(&task->cred_exec_mutex);
182 if (retval < 0) 182 if (retval < 0)
183 goto out; 183 goto out;
184 184
@@ -222,7 +222,7 @@ repeat:
222bad: 222bad:
223 write_unlock_irqrestore(&tasklist_lock, flags); 223 write_unlock_irqrestore(&tasklist_lock, flags);
224 task_unlock(task); 224 task_unlock(task);
225 mutex_unlock(&current->cred_exec_mutex); 225 mutex_unlock(&task->cred_exec_mutex);
226out: 226out:
227 return retval; 227 return retval;
228} 228}