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:24:45 +0000 (18:24 +0200)
commit3832d40ef22ee981ba821022d2e987addeb484ad
tree7d233199b1ce15ee5118db802964588349558481
parent5c955c3cfb58c5374f994196d0fc260f4636e0d5
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