patch-2.4.25 linux-2.4.25/drivers/video/sstfb.c

Next file: linux-2.4.25/fs/Config.in
Previous file: linux-2.4.25/drivers/video/sis/vstruct.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/drivers/video/sstfb.c linux-2.4.25/drivers/video/sstfb.c
@@ -1821,6 +1821,8 @@
 	sst_info = (struct sstfb_info*)kmalloc(sizeof(*sst_info), GFP_KERNEL);
 	if (!sst_info)
 		goto fail_kmalloc;
+	memset(sst_info, 0, sizeof(*sst_info));
+	
 	pci_set_drvdata(pdev, sst_info);
 	sst_info->type = id->driver_data;
 	spec = &voodoo_spec[sst_info->type];

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