linux/drivers/video/console
Jiri Slaby (SUSE) 559f01a0ee tty: vt: sanitize arguments of consw::con_clear()
In consw::con_clear():
* Height is always 1, so drop it.
* Offsets and width are always unsigned values, so re-type them as such.

This needs a new __fbcon_clear() in the fbcon code to still handle
height which might not be 1 when called internally.

Note that tests for negative count/width are left in place -- they are
taken care of in the next patches.

And document the hook.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Cc: Helge Deller <deller@gmx.de>
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: linux-fbdev@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: linux-parisc@vger.kernel.org
Tested-by: Helge Deller <deller@gmx.de> # parisc STI console
Link: https://lore.kernel.org/r/20240122110401.7289-22-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-27 18:08:53 -08:00
..
dummycon.c tty: vt: sanitize arguments of consw::con_clear() 2024-01-27 18:08:53 -08:00
Kconfig vgacon: drop IA64 reference in VGA_CONSOLE dependency list 2023-11-28 19:04:20 +00:00
Makefile video: Move HP PARISC STI core code to shared location 2023-04-20 10:04:51 +02:00
mdacon.c tty: vt: sanitize arguments of consw::con_clear() 2024-01-27 18:08:53 -08:00
newport_con.c tty: vt: sanitize arguments of consw::con_clear() 2024-01-27 18:08:53 -08:00
sticon.c tty: vt: sanitize arguments of consw::con_clear() 2024-01-27 18:08:53 -08:00
vgacon.c tty: vt: sanitize arguments of consw::con_clear() 2024-01-27 18:08:53 -08:00