]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-hugetlbc-fix-virtual-address-handling-in-hugetlb-fault-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 2 Dec 2011 03:12:00 +0000 (14:12 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 5 Dec 2011 04:19:18 +0000 (15:19 +1100)
use &=

Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c

index d4651e1c21479bb62eb39ebe44ef2c6ecfa1f021..6161f7cae0da9f30f8f2acdb685b2e05fa227d6f 100644 (file)
@@ -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) {