aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>2013-11-14 17:31:32 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-11-14 19:32:17 -0500
commitca973d86d4c5b70c32e7b91ce08f3e8e061e2535 (patch)
treeeb88b1b8c0eb1bef13d93318f143c617d9fa3951
parent5de1423d8901bed12f1b96acef27ac133592eaeb (diff)
ia64: handle pgtable_page_ctor() fail
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--arch/ia64/include/asm/pgalloc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/ia64/include/asm/pgalloc.h b/arch/ia64/include/asm/pgalloc.h
index 96a8d927db28..5767cdfc08db 100644
--- a/arch/ia64/include/asm/pgalloc.h
+++ b/arch/ia64/include/asm/pgalloc.h
@@ -91,7 +91,10 @@ static inline pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long addr)
91 if (!pg) 91 if (!pg)
92 return NULL; 92 return NULL;
93 page = virt_to_page(pg); 93 page = virt_to_page(pg);
94 pgtable_page_ctor(page); 94 if (!pgtable_page_ctor(page)) {
95 quicklist_free(0, NULL, pg);
96 return NULL;
97 }
95 return page; 98 return page;
96} 99}
97 100