aboutsummaryrefslogtreecommitdiffstats
path: root/mm/oom_kill.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/oom_kill.c')
-rw-r--r--mm/oom_kill.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index f1aba7e7b760..12cd4735dc29 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -207,6 +207,9 @@ static struct task_struct *select_bad_process(unsigned long *ppoints)
207 unsigned long points; 207 unsigned long points;
208 int releasing; 208 int releasing;
209 209
210 /* skip kernel threads */
211 if (!p->mm)
212 continue;
210 /* skip the init task with pid == 1 */ 213 /* skip the init task with pid == 1 */
211 if (p->pid == 1) 214 if (p->pid == 1)
212 continue; 215 continue;