diff options
Diffstat (limited to 'arch/um/kernel/mem.c')
-rw-r--r-- | arch/um/kernel/mem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c index d872fdce1d7e..2627ce82e918 100644 --- a/arch/um/kernel/mem.c +++ b/arch/um/kernel/mem.c | |||
@@ -354,11 +354,13 @@ pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) | |||
354 | return pte; | 354 | return pte; |
355 | } | 355 | } |
356 | 356 | ||
357 | struct page *pte_alloc_one(struct mm_struct *mm, unsigned long address) | 357 | pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address) |
358 | { | 358 | { |
359 | struct page *pte; | 359 | struct page *pte; |
360 | 360 | ||
361 | pte = alloc_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO); | 361 | pte = alloc_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO); |
362 | if (pte) | ||
363 | pgtable_page_ctor(pte); | ||
362 | return pte; | 364 | return pte; |
363 | } | 365 | } |
364 | 366 | ||