aboutsummaryrefslogtreecommitdiffstats
path: root/mm/huge_memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/huge_memory.c')
-rw-r--r--mm/huge_memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index ba8fdc0b6e7f..1cd7c1a57a14 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -1131,8 +1131,8 @@ static int do_huge_pmd_wp_page_fallback(struct vm_fault *vmf, pmd_t orig_pmd,
1131 unsigned long mmun_start; /* For mmu_notifiers */ 1131 unsigned long mmun_start; /* For mmu_notifiers */
1132 unsigned long mmun_end; /* For mmu_notifiers */ 1132 unsigned long mmun_end; /* For mmu_notifiers */
1133 1133
1134 pages = kmalloc(sizeof(struct page *) * HPAGE_PMD_NR, 1134 pages = kmalloc_array(HPAGE_PMD_NR, sizeof(struct page *),
1135 GFP_KERNEL); 1135 GFP_KERNEL);
1136 if (unlikely(!pages)) { 1136 if (unlikely(!pages)) {
1137 ret |= VM_FAULT_OOM; 1137 ret |= VM_FAULT_OOM;
1138 goto out; 1138 goto out;