sparc/mm/hugepages: Fix setup_hugepagesz for invalid values.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 30 May 2017 19:45:00 +0000 (15:45 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jun 2017 20:45:03 +0000 (13:45 -0700)
commitf322980b74a15e08f8c70a34a5864ecdbf957251
tree0ead7084326f74f24f8e00716c3dc91abaed5df1
parentc982aa9c304bf0b9a7522fd118fed4afa5a0263c
sparc/mm/hugepages: Fix setup_hugepagesz for invalid values.

hugetlb_bad_size needs to be called on invalid values.  Also change the
pr_warn to a pr_err to better align with other platforms.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/init_64.c