usb: serial: mos7840: Fixup mos7840_chars_in_buffer()
authorMark Ferrell <mferrell@uplogix.com>
Tue, 24 Jul 2012 19:15:13 +0000 (14:15 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 10 Feb 2014 21:11:22 +0000 (16:11 -0500)
commitd3eeb6997e5fa986cf4606f4ddb30140e3331be5
treea2a74696c600559f1cf6108c1c84b90772d8af61
parent49bfc0de47432b653b20413fb4241586bcbf294d
usb: serial: mos7840: Fixup mos7840_chars_in_buffer()

commit 5c263b92f828af6a8cf54041db45ceae5af8f2ab upstream.

 * Use the buffer content length as opposed to the total buffer size.  This can
   be a real problem when using the mos7840 as a usb serial-console as all
   kernel output is truncated during boot.

Signed-off-by: Mark Ferrell <mferrell@uplogix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/usb/serial/mos7840.c