tty: vt: fix up tabstops properly
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 24 Mar 2018 09:43:26 +0000 (10:43 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 25 Mar 2018 17:04:00 +0000 (07:04 -1000)
commitf1869a890cdedb92a3fab969db5d0fd982850273
tree883d7bb703bbd9a5280e0fb1c644f7b57acb6915
parente43d40b3216ccd9f249a68cc3ae693f1b3d1db35
tty: vt: fix up tabstops properly

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>
drivers/tty/vt/vt.c