* grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
ports.
This commit is contained in:
parent
43168646d8
commit
c796a107b6
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
|
||||||
|
ports.
|
||||||
|
|
||||||
2013-04-27 Leon Drugi <eyak>
|
2013-04-27 Leon Drugi <eyak>
|
||||||
|
|
||||||
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
|
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
|
||||||
|
|
|
@ -350,7 +350,7 @@ grub_ahci_pciinit (grub_pci_device_t dev,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
adevs[i] = grub_malloc (sizeof (*adevs[i]));
|
adevs[i] = grub_zalloc (sizeof (*adevs[i]));
|
||||||
if (!adevs[i])
|
if (!adevs[i])
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
@ -619,9 +619,9 @@ grub_ahci_pciinit (grub_pci_device_t dev,
|
||||||
for (i = 0; i < nports; i++)
|
for (i = 0; i < nports; i++)
|
||||||
if (failed_adevs[i])
|
if (failed_adevs[i])
|
||||||
{
|
{
|
||||||
grub_dma_free (adevs[i]->command_list_chunk);
|
grub_dma_free (failed_adevs[i]->command_list_chunk);
|
||||||
grub_dma_free (adevs[i]->command_table_chunk);
|
grub_dma_free (failed_adevs[i]->command_table_chunk);
|
||||||
grub_dma_free (adevs[i]->rfis);
|
grub_dma_free (failed_adevs[i]->rfis);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < nports; i++)
|
for (i = 0; i < nports; i++)
|
||||||
|
|
Loading…
Reference in a new issue