]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 8 Oct 2012 10:14:02 +0000 (03:14 -0700)
commitd071eecd5943469e47784fea5401ae657878d1f6
tree366315fdad44befdd43dc1e5855de7b9ce72433d
parente8f8a238de941c0e418256b4e3d6851f0e558357
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>
drivers/usb/serial/mos7840.c