patch-2.4.23 linux-2.4.23/drivers/usb/serial/ipaq.c
Next file: linux-2.4.23/drivers/usb/serial/keyspan.c
Previous file: linux-2.4.23/drivers/usb/serial/io_usbvend.h
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
2003-11-28 10:26:20.000000000 -0800
- Orig file:
linux-2.4.22/drivers/usb/serial/ipaq.c
- Orig date:
2003-08-25 04:44:42.000000000 -0700
diff -urN linux-2.4.22/drivers/usb/serial/ipaq.c linux-2.4.23/drivers/usb/serial/ipaq.c
@@ -332,7 +332,7 @@
usb_serial_debug_data (__FILE__, __FUNCTION__, urb->actual_length, data);
tty = port->tty;
- if (urb->actual_length) {
+ if (tty && urb->actual_length) {
for (i = 0; i < urb->actual_length ; ++i) {
/* if we insert more than TTY_FLIPBUF_SIZE characters, we drop them. */
if(tty->flip.count >= TTY_FLIPBUF_SIZE) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)