diff options
author | Laurent Dufour <ldufour@linux.vnet.ibm.com> | 2017-09-08 16:13:12 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-08 18:26:47 -0700 |
commit | de0c799bba2610a8e1e9a50d76a28614520a4cd4 (patch) | |
tree | fd5cd44d785668802eb9a2982d1465be15270f39 /scripts/checkstack.pl | |
parent | 475d0487a2adb1718892856078861d430d81fc55 (diff) | |
download | lwn-de0c799bba2610a8e1e9a50d76a28614520a4cd4.tar.gz lwn-de0c799bba2610a8e1e9a50d76a28614520a4cd4.zip |
mm/memory.c: fix mem_cgroup_oom_disable() call missing
Seen while reading the code, in handle_mm_fault(), in the case
arch_vma_access_permitted() is failing the call to
mem_cgroup_oom_disable() is not made.
To fix that, move the call to mem_cgroup_oom_enable() after calling
arch_vma_access_permitted() as it should not have entered the memcg OOM.
Link: http://lkml.kernel.org/r/1504625439-31313-1-git-send-email-ldufour@linux.vnet.ibm.com
Fixes: bae473a423f6 ("mm: introduce fault_env")
Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Acked-by: Kirill A. Shutemov <kirill@shutemov.name>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions