patch-2.0.22 linux/drivers/char/pcxx.c
Next file: linux/drivers/char/pty.c
Previous file: linux/drivers/char/cyclades.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Sat Oct 5 09:46:20 1996
- Orig file:
v2.0.21/linux/drivers/char/pcxx.c
- Orig date:
Mon Aug 5 10:13:51 1996
diff -u --recursive --new-file v2.0.21/linux/drivers/char/pcxx.c linux/drivers/char/pcxx.c
@@ -1120,10 +1120,12 @@
pcxe_termios = kmalloc(sizeof(struct termios *) * nbdevs, GFP_KERNEL);
if (!pcxe_termios)
panic("Unable to allocate pcxe_termios struct");
+ memset(pcxe_termios,0,sizeof(struct termios *)*nbdevs);
pcxe_termios_locked = kmalloc(sizeof(struct termios *) * nbdevs, GFP_KERNEL);
if (!pcxe_termios_locked)
panic("Unable to allocate pcxe_termios_locked struct");
+ memset(pcxe_termios_locked,0,sizeof(struct termios *)*nbdevs);
init_bh(DIGI_BH,do_pcxe_bh);
enable_bh(DIGI_BH);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov