summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2013-11-30 16:52:31 +0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-12-29 16:36:20 +0400
commit8c65da6dc89ccb605d73773b1dd617e72982d971 (patch)
tree1458124d921ca1de4d480c273d49ac981655f221 /arch/arm
parent4808972a1cac08f8e8d65419ab56d27a9da3a922 (diff)
downloadlinux-8c65da6dc89ccb605d73773b1dd617e72982d971.tar.xz
ARM: pgd allocation: retry on failure
Make pgd allocation retry on failure; we really need this to succeed otherwise fork() can trigger OOMs. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mm/pgd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mm/pgd.c b/arch/arm/mm/pgd.c
index 1046b373d1ae..249379535be2 100644
--- a/arch/arm/mm/pgd.c
+++ b/arch/arm/mm/pgd.c
@@ -23,7 +23,7 @@
#define __pgd_alloc() kmalloc(PTRS_PER_PGD * sizeof(pgd_t), GFP_KERNEL)
#define __pgd_free(pgd) kfree(pgd)
#else
-#define __pgd_alloc() (pgd_t *)__get_free_pages(GFP_KERNEL, 2)
+#define __pgd_alloc() (pgd_t *)__get_free_pages(GFP_KERNEL | __GFP_REPEAT, 2)
#define __pgd_free(pgd) free_pages((unsigned long)pgd, 2)
#endif