mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
vt: Fix secure clear screen
commit0930b0950aupstream. \E[3J console code (secure clear screen) needs to update_screen(vc) in order to write-through blanks into off-screen video memory. This has been removed accidentally in 3.6 by: commit81732c3b2fAuthor: Jean-François Moine <moinejf@free.fr> Date: Thu Sep 6 19:24:13 2012 +0200 tty vt: Fix line garbage in virtual console on command line edition Signed-off-by: Petr Písař <petr.pisar@atlas.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
41ce42d424
commit
27f0831c1a
|
|
@ -1164,6 +1164,8 @@ static void csi_J(struct vc_data *vc, int vpar)
|
|||
scr_memsetw(vc->vc_screenbuf, vc->vc_video_erase_char,
|
||||
vc->vc_screenbuf_size >> 1);
|
||||
set_origin(vc);
|
||||
if (CON_IS_VISIBLE(vc))
|
||||
update_screen(vc);
|
||||
/* fall through */
|
||||
case 2: /* erase whole display */
|
||||
count = vc->vc_cols * vc->vc_rows;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user