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
- Lines: 9
- Date:
2004-02-18 05:36:31.000000000 -0800
- Orig file:
linux-2.4.24/drivers/video/sstfb.c
- Orig date:
2003-06-13 07:51:37.000000000 -0700
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)