diff options
Diffstat (limited to 'arch/sh/include/asm/pgalloc.h')
-rw-r--r-- | arch/sh/include/asm/pgalloc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/sh/include/asm/pgalloc.h b/arch/sh/include/asm/pgalloc.h index 8c00785c60d5..a33673b3687d 100644 --- a/arch/sh/include/asm/pgalloc.h +++ b/arch/sh/include/asm/pgalloc.h | |||
@@ -47,7 +47,10 @@ static inline pgtable_t pte_alloc_one(struct mm_struct *mm, | |||
47 | if (!pg) | 47 | if (!pg) |
48 | return NULL; | 48 | return NULL; |
49 | page = virt_to_page(pg); | 49 | page = virt_to_page(pg); |
50 | pgtable_page_ctor(page); | 50 | if (!pgtable_page_ctor(page)) { |
51 | quicklist_free(QUICK_PT, NULL, pg); | ||
52 | return NULL; | ||
53 | } | ||
51 | return page; | 54 | return page; |
52 | } | 55 | } |
53 | 56 | ||