mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 08:39:28 +00:00
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:
1 parent
a275d9e7c0
commit
24443b5a47
2 files changed
+9
-1
No files matched your search
@@ -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>
|
2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* util/i386/pc/grub-setup.c (setup): Check that no partition is in
|
* util/i386/pc/grub-setup.c (setup): Check that no partition is in
|
||||||
|
|||||||
@@ -32,10 +32,12 @@ grub_raid5_recover (struct grub_raid_array *array, int disknr,
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
size <<= GRUB_DISK_SECTOR_BITS;
|
size <<= GRUB_DISK_SECTOR_BITS;
|
||||||
buf2 = grub_zalloc (size);
|
buf2 = grub_malloc (size);
|
||||||
if (!buf2)
|
if (!buf2)
|
||||||
return grub_errno;
|
return grub_errno;
|
||||||
|
|
||||||
|
grub_memset (buf, 0, size);
|
||||||
|
|
||||||
for (i = 0; i < (int) array->total_devs; i++)
|
for (i = 0; i < (int) array->total_devs; i++)
|
||||||
{
|
{
|
||||||
grub_err_t err;
|
grub_err_t err;
|
||||||
|
|||||||
Reference in new issue
Block a user