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

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)