projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45a7bd6
)
vt: Fix secure clear screen
author
Petr Písař
<
[email protected]
>
Thu, 6 Feb 2014 20:01:23 +0000
(21:01 +0100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 13 Feb 2014 19:12:00 +0000
(11:12 -0800)
\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:
commit
81732c3b2fede049a692e58a7ceabb6d18ffb18c
Author: Jean-François Moine <
[email protected]
>
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ř <
[email protected]
>
Cc: stable <
[email protected]
> # 3.6
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/tty/vt/vt.c
patch
|
blob
|
history
diff --git
a/drivers/tty/vt/vt.c
b/drivers/tty/vt/vt.c
index 61b1137d7e56d877fad8b2339c368cd09a5419e1..23b5d32954bfc9365ec6453d69e331e975ca8d0e 100644
(file)
--- a/
drivers/tty/vt/vt.c
+++ b/
drivers/tty/vt/vt.c
@@
-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;