diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/oom_kill.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index a35e7a8ebd7e..038d2234f139 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c | |||
@@ -413,6 +413,9 @@ void out_of_memory(struct zonelist *zonelist, gfp_t gfp_mask, int order) | |||
413 | show_mem(); | 413 | show_mem(); |
414 | } | 414 | } |
415 | 415 | ||
416 | if (sysctl_panic_on_oom == 2) | ||
417 | panic("out of memory. Compulsory panic_on_oom is selected.\n"); | ||
418 | |||
416 | cpuset_lock(); | 419 | cpuset_lock(); |
417 | read_lock(&tasklist_lock); | 420 | read_lock(&tasklist_lock); |
418 | 421 | ||