]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: Fix mapping of 64k pages with MAP_FIXED
authorNitin Gupta <nitin.m.gupta@oracle.com>
Mon, 15 May 2017 23:28:17 +0000 (16:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2017 19:07:01 +0000 (12:07 -0700)
commit0fa48b0a1f997d33d9f0dbd208edc38fb21d7e3c
treef1aa480e1fe3c3c41e610791c660c99a9bbeedb6
parentdfca478766b0d65b17df724c4c2244a787b7dec7
sparc64: Fix mapping of 64k pages with MAP_FIXED

An incorrect huge page alignment check caused
mmap failure for 64K pages when MAP_FIXED is used
with address not aligned to HPAGE_SIZE.

Orabug: 25885991

Fixes: 440ec81b85ea ("sparc64: Add 64K page size support")
Signed-off-by: Nitin Gupta <nitin.m.gupta@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/hugetlb.h