diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index b6cce14ba047..98b450876f93 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -899,6 +899,7 @@ static int copy_signal(unsigned long clone_flags, struct task_struct *tsk) | |||
899 | tty_audit_fork(sig); | 899 | tty_audit_fork(sig); |
900 | 900 | ||
901 | sig->oom_adj = current->signal->oom_adj; | 901 | sig->oom_adj = current->signal->oom_adj; |
902 | sig->oom_score_adj = current->signal->oom_score_adj; | ||
902 | 903 | ||
903 | return 0; | 904 | return 0; |
904 | } | 905 | } |
@@ -907,7 +908,7 @@ static void copy_flags(unsigned long clone_flags, struct task_struct *p) | |||
907 | { | 908 | { |
908 | unsigned long new_flags = p->flags; | 909 | unsigned long new_flags = p->flags; |
909 | 910 | ||
910 | new_flags &= ~PF_SUPERPRIV; | 911 | new_flags &= ~(PF_SUPERPRIV | PF_WQ_WORKER); |
911 | new_flags |= PF_FORKNOEXEC; | 912 | new_flags |= PF_FORKNOEXEC; |
912 | new_flags |= PF_STARTING; | 913 | new_flags |= PF_STARTING; |
913 | p->flags = new_flags; | 914 | p->flags = new_flags; |