mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
dereference.
This commit is contained in:
1 parent
a199a8cd1a
commit
e98c83e910
2 files changed
+7
No files matched your search
@@ -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>
|
2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Fix spurious warning.
|
Fix spurious warning.
|
||||||
|
|||||||
@@ -454,10 +454,12 @@ grub_ohci_pci_iter (grub_pci_device_t dev,
|
|||||||
|
|
||||||
fail:
|
fail:
|
||||||
if (o)
|
if (o)
|
||||||
|
{
|
||||||
grub_dma_free (o->td_chunk);
|
grub_dma_free (o->td_chunk);
|
||||||
grub_dma_free (o->ed_bulk_chunk);
|
grub_dma_free (o->ed_bulk_chunk);
|
||||||
grub_dma_free (o->ed_ctrl_chunk);
|
grub_dma_free (o->ed_ctrl_chunk);
|
||||||
grub_dma_free (o->hcca_chunk);
|
grub_dma_free (o->hcca_chunk);
|
||||||
|
}
|
||||||
grub_free (o);
|
grub_free (o);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in new issue
Block a user