patch-2.4.27 linux-2.4.27/drivers/usb/serial/io_edgeport.c

Next file: linux-2.4.27/drivers/usb/serial/ipaq.c
Previous file: linux-2.4.27/drivers/usb/serial/ftdi_sio.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/drivers/usb/serial/io_edgeport.c linux-2.4.27/drivers/usb/serial/io_edgeport.c
@@ -1913,6 +1913,7 @@
 
 		case TIOCGICOUNT:
 			cnow = edge_port->icount;
+			memset(&icount, 0, sizeof(icount));
 			icount.cts = cnow.cts;
 			icount.dsr = cnow.dsr;
 			icount.rng = cnow.rng;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)