]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/ptrace.c
Input: remove w90x900 keyboard driver
[linux.git] / kernel / ptrace.c
index 8456b6e2205f760b668647989e879160a1efb0ac..705887f63288d4694c5bccd5c77900cbddc1f843 100644 (file)
@@ -79,9 +79,7 @@ void __ptrace_link(struct task_struct *child, struct task_struct *new_parent,
  */
 static void ptrace_link(struct task_struct *child, struct task_struct *new_parent)
 {
-       rcu_read_lock();
-       __ptrace_link(child, new_parent, __task_cred(new_parent));
-       rcu_read_unlock();
+       __ptrace_link(child, new_parent, current_cred());
 }
 
 /**