From 24443b5a47315c6850564c61bdb8f51469d52f3d Mon Sep 17 00:00:00 2001 From: proski Date: Fri, 31 Jul 2009 04:38:20 +0000 Subject: [PATCH] 2009-07-31 Pavel Roskin * disk/raid5_recover.c (grub_raid5_recover): Revert conversion to grub_zalloc(), it was erroneous. Reported by Bean --- ChangeLog | 6 ++++++ disk/raid5_recover.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5183b55e0..0ac713c7c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-07-31 Pavel Roskin + + * disk/raid5_recover.c (grub_raid5_recover): Revert conversion + to grub_zalloc(), it was erroneous. + Reported by Bean + 2009-07-30 Vladimir Serbinenko * util/i386/pc/grub-setup.c (setup): Check that no partition is in diff --git a/disk/raid5_recover.c b/disk/raid5_recover.c index a280be1ac..31cef88b1 100644 --- a/disk/raid5_recover.c +++ b/disk/raid5_recover.c @@ -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;