linux/drivers/video/console
Helge Deller 8a5e6282c6 Revert "vgacon: Add check for vc_origin address range in vgacon_scroll()"
commit e4fc307d8e upstream.

This reverts commit 864f9963ec.

The patch is wrong as it checks vc_origin against vc_screenbuf,
while in text mode it should compare against vga_vram_base.

As such it broke VGA text scrolling, which can be reproduced like this:
(1) boot a kernel that is configured to use text mode VGA-console
(2) type commands:  ls -l /usr/bin | less -S
(3) scroll up/down with cursor-down/up keys

Reported-by: Jari Ruusu <jariruusu@protonmail.com>
Cc: stable@vger.kernel.org
Cc: Yi Yang <yiyang13@huawei.com>
Cc: GONG Ruiqi <gongruiqi1@huawei.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-08-28 16:24:27 +02:00
..
dummycon.c dummycon: Trigger redraw when switching consoles with deferred takeover 2025-07-10 15:57:37 +02:00
Kconfig mdacon: rework dependency list 2025-04-10 14:31:59 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mdacon.c tty: vt: make consw::con_switch() return a bool 2025-07-10 15:57:37 +02:00
newport_con.c tty: vt: make consw::con_switch() return a bool 2025-07-10 15:57:37 +02:00
sticon.c tty: vt: make consw::con_switch() return a bool 2025-07-10 15:57:37 +02:00
sticore.c parisc/stifb: Fix fb_is_primary_device() only available with CONFIG_FB_STI 2022-06-29 09:03:29 +02:00
vgacon.c Revert "vgacon: Add check for vc_origin address range in vgacon_scroll()" 2025-08-28 16:24:27 +02:00