summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorShyam Saini <mayhs11saini@gmail.com>2016-10-13 21:50:07 +0530
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-10-17 11:25:26 +0200
commitb5003b5f0a19b6b37ab32b1f0c6b5da2cb3f0903 (patch)
tree14629480c30c6c1c0701f0f34d4b59351b49395e /arch
parent179a98cba11b057d9f1cc70cd2a8831f9e9a06e6 (diff)
downloadlinux-b5003b5f0a19b6b37ab32b1f0c6b5da2cb3f0903.tar.bz2
s390/mm: use hugetlb_bad_size()
Update setup_hugepagesz() to call hugetlb_bad_size() when unsupported hugepage size is found. Signed-off-by: Shyam Saini <mayhs11saini@gmail.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/s390/mm/hugetlbpage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/mm/hugetlbpage.c b/arch/s390/mm/hugetlbpage.c
index cd404aa3931c..4a0c5bce3552 100644
--- a/arch/s390/mm/hugetlbpage.c
+++ b/arch/s390/mm/hugetlbpage.c
@@ -217,6 +217,7 @@ static __init int setup_hugepagesz(char *opt)
} else if (MACHINE_HAS_EDAT2 && size == PUD_SIZE) {
hugetlb_add_hstate(PUD_SHIFT - PAGE_SHIFT);
} else {
+ hugetlb_bad_size();
pr_err("hugepagesz= specifies an unsupported page size %s\n",
string);
return 0;