patch-2.4.21 linux-2.4.21/drivers/mtd/afs.c
Next file: linux-2.4.21/drivers/mtd/bootldr.c
Previous file: linux-2.4.21/drivers/mtd/Makefile
Back to the patch index
Back to the overall index
-  Lines: 17
-  Date:
2003-06-13 07:51:34.000000000 -0700
-  Orig file: 
linux-2.4.20/drivers/mtd/afs.c
-  Orig date: 
2002-08-02 17:39:44.000000000 -0700
diff -urN linux-2.4.20/drivers/mtd/afs.c linux-2.4.21/drivers/mtd/afs.c
@@ -21,7 +21,7 @@
    This is access code for flashes using ARM's flash partitioning 
    standards.
 
-   $Id: afs.c,v 1.7 2001/11/01 20:04:54 rmk Exp $
+   $Id: afs.c,v 1.8 2002/05/04 08:49:09 rmk Exp $
 
 ======================================================================*/
 
@@ -169,6 +169,7 @@
 	if (!parts)
 		return -ENOMEM;
 
+	memset(parts, 0, sz);
 	str = (char *)(parts + idx);
 
 	/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)