PERFORCE change 106357 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Tue Sep 19 13:21:02 PDT 2006
http://perforce.freebsd.org/chv.cgi?CH=106357
Change 106357 by hselasky at hselasky_mini_itx on 2006/09/19 20:19:55
USB-cdev bugfix. Prevent devices with no start_write
function from waiting forever at close, if there is
queued data.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/usb_cdev.c#9 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/usb_cdev.c#9 (text+ko) ====
@@ -951,6 +951,13 @@
return;
}
+static void
+usb_cdev_dummy_start_write(struct usb_cdev *sc)
+{
+ sc->sc_flags &= ~USB_CDEV_FLAG_FLUSHING_WRITE;
+ return;
+}
+
static u_int8_t minor_table[(1<<16) / 8];
static u_int32_t
@@ -1036,7 +1043,7 @@
}
if (sc->sc_start_write == NULL) {
- sc->sc_start_write = &usb_cdev_dummy_cmd;
+ sc->sc_start_write = &usb_cdev_dummy_start_write;
}
if (sc->sc_stop_write == NULL) {
More information about the p4-projects
mailing list