diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index 92c2ee2dfcf8072688f4e328181df2b6f489ee44..71e3dede95b424fb57c5e5c44be3dd5b133fd71f 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -1506,7 +1506,7 @@ int do_huge_pmd_numa_page(struct vm_fault *vmf, pmd_t pmd)
 
 	if (page_nid != -1)
 		task_numa_fault(last_cpupid, page_nid, HPAGE_PMD_NR,
-				vmf->flags);
+				flags);
 
 	return 0;
 }