diff options
author | thompsa <thompsa@FreeBSD.org> | 2008-12-18 19:15:25 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2008-12-18 19:15:25 +0000 |
commit | 0010656ee9ee024f4582605e0e9a29eff6b747b2 (patch) | |
tree | 991e8e05a5b93fd9764cd726bccd6540946c8985 /sys/dev/usb | |
parent | fcc42d6a258f7ac659477beaa60edaa362d15c36 (diff) | |
download | FreeBSD-src-0010656ee9ee024f4582605e0e9a29eff6b747b2.zip FreeBSD-src-0010656ee9ee024f4582605e0e9a29eff6b747b2.tar.gz |
Fix last commit, ttydisc_rint_bypass returns the total, not remainder.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/ucom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/ucom.c b/sys/dev/usb/ucom.c index 3c39570..ae263a0 100644 --- a/sys/dev/usb/ucom.c +++ b/sys/dev/usb/ucom.c @@ -708,7 +708,7 @@ ucomrxchars(struct ucom_softc *sc, u_char *cp, u_int32_t cc) /* 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)); |