fbcon: Disallow setting font bigger than screen size
authorHelge Deller <deller@gmx.de>
Sat, 25 Jun 2022 10:56:49 +0000 (12:56 +0200)
committerHelge Deller <deller@gmx.de>
Thu, 7 Jul 2022 08:50:45 +0000 (10:50 +0200)
commit65a01e601dbba8b7a51a2677811f70f783766682
tree0d8fee001f1711569f1748df1f3bc6a45ee807b8
parent3663a2fb325b8782524f3edb0ae32d6faa615109
fbcon: Disallow setting font bigger than screen size

Prevent that users set a font size which is bigger than the physical screen.
It's unlikely this may happen (because screens are usually much larger than the
fonts and each font char is limited to 32x32 pixels), but it may happen on
smaller screens/LCD displays.

Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: stable@vger.kernel.org # v4.14+
drivers/video/fbdev/core/fbcon.c