Message ID | 1405977700-1843-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 3e6bb9f..c29c7d5 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -2502,8 +2502,9 @@ static int __mem_cgroup_try_charge(struct mm_struct *mm, * in system level. So, allow to go ahead dying process in addition to * MEMDIE process. */ - if (unlikely(test_thread_flag(TIF_MEMDIE) - || fatal_signal_pending(current))) + if (unlikely(test_thread_flag(TIF_MEMDIE) || + fatal_signal_pending(current) || + current->flags & PF_EXITING)) goto bypass; /*