uprobes: Change the callsite of uprobe_copy_process()
[platform/adaptation/renesas_rcar/renesas_kernel.git] / kernel / fork.c
index 086fe73..d3603b8 100644 (file)
@@ -1373,7 +1373,6 @@ static struct task_struct *copy_process(unsigned long clone_flags,
        INIT_LIST_HEAD(&p->pi_state_list);
        p->pi_state_cache = NULL;
 #endif
-       uprobe_copy_process(p);
        /*
         * sigaltstack should be cleared when sharing the same VM
         */
@@ -1490,6 +1489,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
        perf_event_fork(p);
 
        trace_task_newtask(p, clone_flags);
+       uprobe_copy_process(p);
 
        return p;