]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Aug 2012 18:51:42 +0000 (11:51 -0700)
commit723fa12070be6a53b8ad31051b21c8e736cc3744
tree1922c955cf2458ae9fc9de2125678a157d8882c6
parent21ea3697ada5e38dcccd9bcbb3ca2516dd9d2abd
usb: serial: mos7840: Fixup mos7840_chars_in_buffer()

 * 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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/mos7840.c