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)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 23 Jun 2020 12:05:55 +0000 (14:05 +0200)
commit827c4913923e0b441ba07ba4cc41e01181102303
tree01f68e4352a1658e4517f319980ebc671fe9137b
parent998f5bbe3dbdab81c1cfb1aef7c3892f5d24f6c7
s390/debug: avoid kernel warning on too large number of pages

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>
arch/s390/kernel/debug.c