diff options
Diffstat (limited to 'arch/m32r')
-rw-r--r-- | arch/m32r/include/asm/pgalloc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/m32r/include/asm/pgalloc.h b/arch/m32r/include/asm/pgalloc.h index ac4208bcc5ad..2d55a064ccac 100644 --- a/arch/m32r/include/asm/pgalloc.h +++ b/arch/m32r/include/asm/pgalloc.h | |||
@@ -45,7 +45,10 @@ static __inline__ pgtable_t pte_alloc_one(struct mm_struct *mm, | |||
45 | 45 | ||
46 | if (!pte) | 46 | if (!pte) |
47 | return NULL; | 47 | return NULL; |
48 | pgtable_page_ctor(pte); | 48 | if (!pgtable_page_ctor(pte)) { |
49 | __free_page(pte); | ||
50 | return NULL; | ||
51 | } | ||
49 | return pte; | 52 | return pte; |
50 | } | 53 | } |
51 | 54 | ||