diff options
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r-- | mm/memcontrol.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 65fc6a449841..34d3ca9572d6 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -2766,6 +2766,8 @@ done: | |||
2766 | return 0; | 2766 | return 0; |
2767 | nomem: | 2767 | nomem: |
2768 | *ptr = NULL; | 2768 | *ptr = NULL; |
2769 | if (gfp_mask & __GFP_NOFAIL) | ||
2770 | return 0; | ||
2769 | return -ENOMEM; | 2771 | return -ENOMEM; |
2770 | bypass: | 2772 | bypass: |
2771 | *ptr = root_mem_cgroup; | 2773 | *ptr = root_mem_cgroup; |