patch-2.1.18 linux/drivers/char/pcxx.c
Next file: linux/drivers/char/riscom8.c
Previous file: linux/drivers/char/pcwd.c
Back to the patch index
Back to the overall index
-  Lines: 8
-  Date:
Sun Dec 22 15:07:11 1996
-  Orig file: 
v2.1.17/linux/drivers/char/pcxx.c
-  Orig date: 
Thu Dec 12 17:02:41 1996
diff -u --recursive --new-file v2.1.17/linux/drivers/char/pcxx.c linux/drivers/char/pcxx.c
@@ -1111,6 +1111,7 @@
 	digi_channels = kmalloc(sizeof(struct channel) * nbdevs, GFP_KERNEL);
 	if (!digi_channels)
 		panic("Unable to allocate digi_channel struct");
+	memset(digi_channels, 0, sizeof(struct channel) * nbdevs);
 
 	pcxe_table =  kmalloc(sizeof(struct tty_struct *) * nbdevs, GFP_KERNEL);
 	if (!pcxe_table)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov