patch-2.3.25 linux/drivers/char/ppdev.c

Next file: linux/drivers/char/radio-cadet.c
Previous file: linux/drivers/char/nvram.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.24/linux/drivers/char/ppdev.c linux/drivers/char/ppdev.c
@@ -509,6 +509,7 @@
 	if (!pp)
 		return -ENOMEM;
 
+	memset (pp, 0, sizeof (struct pp_struct));
 	pp->state.mode = IEEE1284_MODE_COMPAT;
 	pp->state.phase = init_phase (pp->state.mode);
 	pp->flags = 0;

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