* grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
on devices that do not implement function 0.
This commit is contained in:
parent
4af0504b72
commit
99d925aad4
2 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-01-03 Colin Watson <cjwatson@ubuntu.com>
|
||||
|
||||
* grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
|
||||
on devices that do not implement function 0.
|
||||
|
||||
2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
|
||||
|
||||
* grub-core/fs/hfsplus.c: Make parent unsigned.
|
||||
|
|
|
@ -90,7 +90,14 @@ grub_pci_iterate (grub_pci_iteratefunc_t hook)
|
|||
|
||||
/* Check if there is a device present. */
|
||||
if (id >> 16 == 0xFFFF)
|
||||
{
|
||||
if (dev.function == 0)
|
||||
/* Devices are required to implement function 0, so if
|
||||
it's missing then there is no device here. */
|
||||
break;
|
||||
else
|
||||
continue;
|
||||
}
|
||||
|
||||
#ifdef GRUB_MACHINE_MIPS_YEELOONG
|
||||
/* Skip ghosts. */
|
||||
|
|
Loading…
Reference in a new issue