From d20df8b51cf646135e2c921f8770082c52d90592 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 30 Nov 2011 15:11:27 +1100 Subject: [PATCH] mm-hugetlbc-fix-virtual-address-handling-in-hugetlb-fault-fix use &= Cc: KAMEZAWA Hiroyuki Cc: KOSAKI Motohiro Signed-off-by: Andrew Morton --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index d4651e1c2147..6161f7cae0da 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -2640,7 +2640,7 @@ int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma, static DEFINE_MUTEX(hugetlb_instantiation_mutex); struct hstate *h = hstate_vma(vma); - address = address & huge_page_mask(h); + address &= huge_page_mask(h); ptep = huge_pte_offset(mm, address); if (ptep) { -- 2.39.5