2009-07-31 Pavel Roskin <proski@gnu.org>

* disk/raid5_recover.c (grub_raid5_recover): Revert conversion
	to grub_zalloc(), it was erroneous.
	Reported by Bean <bean123ch@gmail.com>
This commit is contained in:
proski 2009-07-31 04:38:20 +00:00
parent a275d9e7c0
commit 24443b5a47
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2009-07-31 Pavel Roskin <proski@gnu.org>
* disk/raid5_recover.c (grub_raid5_recover): Revert conversion
to grub_zalloc(), it was erroneous.
Reported by Bean <bean123ch@gmail.com>
2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
* util/i386/pc/grub-setup.c (setup): Check that no partition is in

View file

@ -32,10 +32,12 @@ grub_raid5_recover (struct grub_raid_array *array, int disknr,
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;