aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/oom_kill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index bada3d03119f..f3dd79c1c367 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -255,7 +255,7 @@ static struct task_struct *select_bad_process(unsigned long *ppoints)
255 */ 255 */
256static void __oom_kill_task(struct task_struct *p, const char *message) 256static void __oom_kill_task(struct task_struct *p, const char *message)
257{ 257{
258 if (p->pid == 1) { 258 if (is_init(p)) {
259 WARN_ON(1); 259 WARN_ON(1);
260 printk(KERN_WARNING "tried to kill init!\n"); 260 printk(KERN_WARNING "tried to kill init!\n");
261 return; 261 return;