aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/avr32/include/asm/pgalloc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/avr32/include/asm/pgalloc.h b/arch/avr32/include/asm/pgalloc.h
index bc7e8ae479ee..1aba19d68c5e 100644
--- a/arch/avr32/include/asm/pgalloc.h
+++ b/arch/avr32/include/asm/pgalloc.h
@@ -68,7 +68,10 @@ static inline pgtable_t pte_alloc_one(struct mm_struct *mm,
68 return NULL; 68 return NULL;
69 69
70 page = virt_to_page(pg); 70 page = virt_to_page(pg);
71 pgtable_page_ctor(page); 71 if (!pgtable_page_ctor(page)) {
72 quicklist_free(QUICK_PT, NULL, pg);
73 return NULL;
74 }
72 75
73 return page; 76 return page;
74} 77}