From: Andrew Morton Date: Fri, 2 Dec 2011 03:12:00 +0000 (+1100) Subject: mm-hugetlbc-fix-virtual-address-handling-in-hugetlb-fault-fix X-Git-Tag: next-20111205~1^2~149 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cd972493390dc33701eeae70156496e0e861bc25;p=karo-tx-linux.git mm-hugetlbc-fix-virtual-address-handling-in-hugetlb-fault-fix use &= Cc: KAMEZAWA Hiroyuki Cc: KOSAKI Motohiro Signed-off-by: Andrew Morton --- 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) {