From c13faf60fa695e3fb641c0712f38cfbad595f774 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 8 Dec 2011 15:41:44 +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