aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index b7d7a9f0bd7a..f4466ca37ece 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1412,12 +1412,12 @@ long do_fork(unsigned long clone_flags,
1412 if (clone_flags & CLONE_VFORK) { 1412 if (clone_flags & CLONE_VFORK) {
1413 p->vfork_done = &vfork; 1413 p->vfork_done = &vfork;
1414 init_completion(&vfork); 1414 init_completion(&vfork);
1415 } else { 1415 } else if (!(clone_flags & CLONE_VM)) {
1416 /* 1416 /*
1417 * vfork will do an exec which will call 1417 * vfork will do an exec which will call
1418 * set_task_comm() 1418 * set_task_comm()
1419 */ 1419 */
1420 perf_counter_comm(p); 1420 perf_counter_fork(p);
1421 } 1421 }
1422 1422
1423 audit_finish_fork(p); 1423 audit_finish_fork(p);