[PATCH] Fix Specialix SX corruption
authorMarc Zyngier <maz@misterjones.org>
Mon, 27 Feb 2006 11:08:00 +0000 (12:08 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 27 Feb 2006 16:18:04 +0000 (08:18 -0800)
With the latest kernels, I experienced some strange corruption, some
'*****' being randomly inserted in the character flow, like this:

ashes:~#
ashes:~#
a*******shes:~#
ashes:~#
ashes:~#

Further investigation shows that the problem was introduced during
Alan's "TTY layer buffering revamp" patch, the amount of data to be
copied being reduced after buffer allocation.  Moving the count fixup
around solves the problem.

Signed-off-by: Marc Zyngier <maz@misterjones.org>
Approved-by: Rogier Wolff <R.E.Wolff@BitWizard.nl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

No differences found