OSDN Git Service

tty: vt: fix up tabstops properly
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 24 Mar 2018 09:43:26 +0000 (10:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Mar 2018 16:39:24 +0000 (18:39 +0200)
commit7c28067736a24a19e0d646fea510357228e95910
tree8eb6222ce688a77ea03c5b7665a74d2794b74383
parent101a72edd98d2f87d112f21f81f796f584f1bd58
tty: vt: fix up tabstops properly

commit f1869a890cdedb92a3fab969db5d0fd982850273 upstream.

Tabs on a console with long lines do not wrap properly, so correctly
account for the line length when computing the tab placement location.

Reported-by: James Holderness <j4_james@hotmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c