PERFORCE change 146465 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Sat Aug 2 16:14:00 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=146465
Change 146465 by hselasky at 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;
More information about the p4-projects
mailing list