From: Felipe Balbi Date: Mon, 21 Mar 2011 10:25:08 +0000 (+0200) Subject: tty: make receive_buf() return the amout of bytes received X-Git-Tag: v3.0-rc1~338^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1c43f82c5aa265442f82dba31ce985ebb7aa71c;p=pandora-kernel.git tty: make receive_buf() return the amout of bytes received it makes it simpler to keep track of the amount of bytes received and simplifies how flush_to_ldisc counts the remaining bytes. It also fixes a bug of lost bytes on n_tty when flushing too many bytes via the USB serial gadget driver. Tested-by: Stefan Bigler Tested-by: Toby Gray Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed