sparc64: Fix hugepage page table free
authorNitin Gupta <nitin.m.gupta@oracle.com>
Mon, 17 Apr 2017 22:46:41 +0000 (15:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Apr 2017 20:11:07 +0000 (13:11 -0700)
commit544f8f935863c5a9ca3e34306ea3316095e7b7bf
tree2447f4641b6a4cfec7600b168b95421343ff2de6
parent395102db441abb8fd18fec5dd81428b5120232af
sparc64: Fix hugepage page table free

Make sure the start adderess is aligned to PMD_SIZE
boundary when freeing page table backing a hugepage
region. The issue was causing segfaults when a region
backed by 64K pages was unmapped since such a region
is in general not PMD_SIZE aligned.

Signed-off-by: Nitin Gupta <nitin.m.gupta@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/hugetlbpage.c