* grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer

dereference.
This commit is contained in:
David Volgyes authored and Vladimir 'phcoder' Serbinenko committed 2011-06-23 20:28:04 +02:00
1 parent a199a8cd1a
commit e98c83e910
2 files changed
+7

No files matched your search

+5
View File
@@ -1,3 +1,8 @@
2011-06-23 David Volgyes <dvolgyes>
* grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
dereference.
2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
Fix spurious warning.
+2
View File
@@ -454,10 +454,12 @@ grub_ohci_pci_iter (grub_pci_device_t dev,
fail:
if (o)
{
grub_dma_free (o->td_chunk);
grub_dma_free (o->ed_bulk_chunk);
grub_dma_free (o->ed_ctrl_chunk);
grub_dma_free (o->hcca_chunk);
}
grub_free (o);
return 0;