[2456] 2009-07-31 Pavel Roskin <[email protected]>

Pavel Roskin <[email protected]> Fri, 31 Jul 2009 04:38:20 +0000
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 2456
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2456
Author:   proski
Date:     2009-07-31 04:38:20 +0000 (Fri, 31 Jul 2009)
Log Message:
-----------
2009-07-31  Pavel Roskin  <[email protected]>

	* disk/raid5_recover.c (grub_raid5_recover): Revert conversion
	to grub_zalloc(), it was erroneous.
	Reported by Bean <[email protected]>

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/disk/raid5_recover.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2009-07-29 22:50:38 UTC (rev 2455)
+++ trunk/grub2/ChangeLog	2009-07-31 04:38:20 UTC (rev 2456)
@@ -1,3 +1,9 @@
+2009-07-31  Pavel Roskin  <[email protected]>
+
+	* disk/raid5_recover.c (grub_raid5_recover): Revert conversion
+	to grub_zalloc(), it was erroneous.
+	Reported by Bean <[email protected]>
+
 2009-07-30  Vladimir Serbinenko  <[email protected]>
 
 	* util/i386/pc/grub-setup.c (setup): Check that no partition is in

Modified: trunk/grub2/disk/raid5_recover.c
===================================================================
--- trunk/grub2/disk/raid5_recover.c	2009-07-29 22:50:38 UTC (rev 2455)
+++ trunk/grub2/disk/raid5_recover.c	2009-07-31 04:38:20 UTC (rev 2456)
@@ -32,10 +32,12 @@
   int i;
 
   size <<= GRUB_DISK_SECTOR_BITS;
-  buf2 = grub_zalloc (size);
+  buf2 = grub_malloc (size);
   if (!buf2)
     return grub_errno;
 
+  grub_memset (buf, 0, size);
+
   for (i = 0; i < (int) array->total_devs; i++)
     {
       grub_err_t err;