]> 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>
Thu, 8 Dec 2011 04:41:44 +0000 (15:41 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Dec 2011 05:48:04 +0000 (16:48 +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) {