patch-2.4.1 linux/drivers/usb/serial/visor.c
Next file: linux/drivers/usb/storage/debug.h
Previous file: linux/drivers/usb/serial/usbserial.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Tue Jan 16 14:29:54 2001
- Orig file:
v2.4.0/linux/drivers/usb/serial/visor.c
- Orig date:
Thu Jan 4 13:15:32 2001
diff -u --recursive --new-file v2.4.0/linux/drivers/usb/serial/visor.c linux/drivers/usb/serial/visor.c
@@ -10,6 +10,10 @@
* (at your option) any later version.
*
* See Documentation/usb/usb-serial.txt for more information on using this driver
+ *
+ * (12/12/2000) gkh
+ * Moved MOD_DEC to end of visor_close to be nicer, as the final write
+ * message can sleep.
*
* (11/12/2000) gkh
* Fixed bug with data being dropped on the floor by forcing tty->low_latency
@@ -214,7 +218,6 @@
spin_lock_irqsave (&port->port_lock, flags);
--port->open_count;
- MOD_DEC_USE_COUNT;
if (port->open_count <= 0) {
transfer_buffer = kmalloc (0x12, GFP_KERNEL);
@@ -237,6 +240,8 @@
/* Uncomment the following line if you want to see some statistics in your syslog */
/* info ("Bytes In = %d Bytes Out = %d", bytes_in, bytes_out); */
+
+ MOD_DEC_USE_COUNT;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)