Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Aug 2008 16:13:59 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 146465 for review
Message-ID:  <200808021613.m72GDxXP035887@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=146465

Change 146465 by hselasky@hselasky_laptop001 on 2008/08/02 16:13:36

	
	Patch gotten from Andrew Thompson.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb2/serial/usb2_serial.c#3 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb2/serial/usb2_serial.c#3 (text+ko) ====

@@ -966,7 +966,15 @@
 
 	DPRINTF(0, "sc = %p\n", sc);
 
+	if (tp->t_outq.c_cc == 0) {
+		/*
+		 * The TTY layer does not expect TS_BUSY to be set
+		 * when there are no characters to output.
+		 */
+		return;
+	}
 	if (!(sc->sc_flag & UCOM_FLAG_HL_READY)) {
+		/* The higher layer is not ready */
 		return;
 	}
 	tp->t_state |= TS_BUSY;



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