]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - kernel/fork.c
fault-inject: support systematic fault injection
[mirror_ubuntu-artful-kernel.git] / kernel / fork.c
index d2b9d7c31eaf81774cd50bee0eb4f35f10e29f90..ade237a963088b94b5a48216af2610a946bd501e 100644 (file)
@@ -573,6 +573,10 @@ static struct task_struct *dup_task_struct(struct task_struct *orig, int node)
 
        kcov_task_init(tsk);
 
+#ifdef CONFIG_FAULT_INJECTION
+       tsk->fail_nth = 0;
+#endif
+
        return tsk;
 
 free_stack: