patch-2.4.20 linux-2.4.20/drivers/ide/ide-probe.c
Next file: linux-2.4.20/drivers/ide/ide-sibyte.c
Previous file: linux-2.4.20/drivers/ide/ide-pmac.c
Back to the patch index
Back to the overall index
-  Lines: 8
 -  Date:
Thu Nov 28 15:53:13 2002
 -  Orig file: 
linux-2.4.19/drivers/ide/ide-probe.c
 -  Orig date: 
Fri Aug  2 17:39:44 2002
 
diff -urN linux-2.4.19/drivers/ide/ide-probe.c linux-2.4.20/drivers/ide/ide-probe.c
@@ -785,6 +785,7 @@
 	gd        = kmalloc (sizeof(struct gendisk), GFP_KERNEL);
 	if (!gd)
 		goto err_kmalloc_gd;
+	memset (gd, 0, sizeof(struct gendisk));
 	gd->sizes = kmalloc (minors * sizeof(int), GFP_KERNEL);
 	if (!gd->sizes)
 		goto err_kmalloc_gd_sizes;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)