Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b896189d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "lowmemorykiller: fix memory corruption"

parents 01a84b70 689dc713
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -431,8 +431,10 @@ static void mark_lmk_victim(struct task_struct *tsk)
{
	struct mm_struct *mm = tsk->mm;

	if (!cmpxchg(&tsk->signal->oom_mm, NULL, mm))
	if (!cmpxchg(&tsk->signal->oom_mm, NULL, mm)) {
		atomic_inc(&tsk->signal->oom_mm->mm_count);
		set_bit(MMF_OOM_VICTIM, &mm->flags);
	}
}

static unsigned long lowmem_scan(struct shrinker *s, struct shrink_control *sc)