on devices that do not implement function 0.
+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.
/* Check if there is a device present. */
if (id >> 16 == 0xFFFF)
- continue;
+ {
+ 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. */