summaryrefslogtreecommitdiff
path: root/include/asm-generic
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2019-02-11 19:36:41 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-23 20:10:10 +0100
commitb05581b8ba9c6c84290f3390c552ea78b77bddea (patch)
treed512c168d20f1cc6e2325756935771d8a3296f4c /include/asm-generic
parent2ca85aac1213ffe90d8503521fb57bed4c2cabd4 (diff)
vt: perform safe console erase in the right order
commit a6dbe442755999960ca54a9b8ecfd9606be0ea75 upstream. Commit 4b4ecd9cb853 ("vt: Perform safe console erase only once") removed what appeared to be an extra call to scr_memsetw(). This missed the fact that set_origin() must be called before clearing the screen otherwise old screen content gets restored on the screen when using vgacon. Let's fix that by moving all the scrollback handling to flush_scrollback() where it logically belongs, and invoking it before the actual screen clearing in csi_J(), making the code simpler in the end. Reported-by: Matthew Whitehead <tedheadster@gmail.com> Signed-off-by: Nicolas Pitre <nico@linaro.org> Tested-by: Matthew Whitehead <tedheadster@gmail.com> Fixes: 4b4ecd9cb853 ("vt: Perform safe console erase only once") Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/asm-generic')
0 files changed, 0 insertions, 0 deletions