]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: serial: mos7840: Fixup mos7840_chars_in_buffer()
authorMark Ferrell <mferrell@uplogix.com>
Tue, 24 Jul 2012 19:15:13 +0000 (14:15 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 12 Sep 2012 02:36:55 +0000 (03:36 +0100)
commit4ca589e245b8806bc8dc055250c0168dc2a25a92
tree4e22143e3ca2a33b97b01404b568b965397e48f8
parent60fbcbaa4549c9d21f5dca40820c13a8276ca75a
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: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/serial/mos7840.c