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>
Tue, 13 Nov 2018 19:09:00 +0000 (11:09 -0800)
commit13794b24ef4eac7951018630b0434d24b7a2f808
treeaf4f5a1fc0b51a148397be88df82941c6868696a
parentab5d01b6130a4faa37a393cf828c6f65c45e7251
vt: fix broken display when running aptitude

commit 943210ba807ec50aafa2fa7b13bd6d36a478969b upstream.

If you run aptitude on framebuffer console, the display is corrupted. The
corruption is caused by the commit d8ae7242. 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: d8ae72427187 ("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