Date: Tue, 19 Sep 2006 20:20:52 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 106357 for review Message-ID: <200609192020.k8JKKqiP095682@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=106357 Change 106357 by hselasky@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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609192020.k8JKKqiP095682>