s390/debug: avoid kernel warning on too large number of pages
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 31 Mar 2020 09:57:23 +0000 (05:57 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jul 2020 07:39:29 +0000 (09:39 +0200)
commit40a6a9fa77edd17c45dc34c4f258bb1c900522bd
treec0712b793840ae7a39e0ae98ee905d9b9695442d
parent64e980587e49aad4d1e3fea8eb262d3b3151e063
s390/debug: avoid kernel warning on too large number of pages

[ Upstream commit 827c4913923e0b441ba07ba4cc41e01181102303 ]

When specifying insanely large debug buffers a kernel warning is
printed. The debug code does handle the error gracefully, though.
Instead of duplicating the check let us silence the warning to
avoid crashes when panic_on_warn is used.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/kernel/debug.c