oom: allow a non-CAP_SYS_RESOURCE proces to oom_score_adj down
[linux-3.10.git] / kernel / fork.c
index 76a1fdd..1499607 100644 (file)
@@ -910,6 +910,7 @@ static int copy_signal(unsigned long clone_flags, struct task_struct *tsk)
 
        sig->oom_adj = current->signal->oom_adj;
        sig->oom_score_adj = current->signal->oom_score_adj;
+       sig->oom_score_adj_min = current->signal->oom_score_adj_min;
 
        mutex_init(&sig->cred_guard_mutex);