From cd972493390dc33701eeae70156496e0e861bc25 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 2 Dec 2011 14:12:00 +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