Skip to content

Commit 943210b

Browse files
Mikulas Patockagregkh
authored andcommitted
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 d8ae724. 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: d8ae724 ("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>
1 parent 202dc3c commit 943210b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/vt/vt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,7 @@ static void csi_K(struct vc_data *vc, int vpar)
15511551
scr_memsetw(start + offset, vc->vc_video_erase_char, 2 * count);
15521552
vc->vc_need_wrap = 0;
15531553
if (con_should_update(vc))
1554-
do_update_region(vc, (unsigned long) start, count);
1554+
do_update_region(vc, (unsigned long)(start + offset), count);
15551555
}
15561556

15571557
static void csi_X(struct vc_data *vc, int vpar) /* erase the following vpar positions */

0 commit comments

Comments
 (0)