Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Dec 2008 19:15:25 +0000 (UTC)
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r186294 - head/sys/dev/usb
Message-ID:  <200812181915.mBIJFP1H050228@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: thompsa
Date: Thu Dec 18 19:15:25 2008
New Revision: 186294
URL: http://svn.freebsd.org/changeset/base/186294

Log:
  Fix last commit, ttydisc_rint_bypass returns the total, not remainder.

Modified:
  head/sys/dev/usb/ucom.c

Modified: head/sys/dev/usb/ucom.c
==============================================================================
--- head/sys/dev/usb/ucom.c	Thu Dec 18 19:09:14 2008	(r186293)
+++ head/sys/dev/usb/ucom.c	Thu Dec 18 19:15:25 2008	(r186294)
@@ -708,7 +708,7 @@ ucomrxchars(struct ucom_softc *sc, u_cha
 	/* Give characters to tty layer. */
 	if (ttydisc_can_bypass(tp)) {
 		DPRINTFN(7, ("ucomreadcb: buf = %*D\n", cc, cp, ""));
-		cc = ttydisc_rint_bypass(tp, cp, cc);
+		cc -= ttydisc_rint_bypass(tp, cp, cc);
 	} else {
 		while (cc > 0) {
 			DPRINTFN(7, ("ucomreadcb: char = 0x%02x\n", *cp));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812181915.mBIJFP1H050228>