]> git.baikalelectronics.ru Git - kernel.git/commit
vt: fix broken display when running aptitude
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 23 Oct 2018 15:28:28 +0000 (11:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Nov 2018 11:36:40 +0000 (03:36 -0800)
commit7c5e875399c1b9f19ab8e52474bfe546261f8ceb
tree5ff3d23f1a708481fa6ffa9c5974ccca2a3f1927
parent6cc0a4e3c4374bc1b10a99be7b95d632c487a6d3
vt: fix broken display when running aptitude

If you run aptitude on framebuffer console, the display is corrupted. The
corruption is caused by the commit 20040f30. The patch adds "offset" to
"start" when calling scr_memsetw, but it forgets to do the same addition
on a subsequent call to do_update_region.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Fixes: 20040f30f0ba ("vt: preserve unicode values corresponding to screen characters")
Reviewed-by: Nicolas Pitre <nico@linaro.org>
Cc: stable@vger.kernel.org # 4.19
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c