mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
on devices that do not implement function 0.
This commit is contained in:
1 parent
4af0504b72
commit
99d925aad4
2 files changed
+13
-1
No files matched your search
@@ -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>
|
2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
|
||||||
|
|
||||||
* grub-core/fs/hfsplus.c: Make parent unsigned.
|
* grub-core/fs/hfsplus.c: Make parent unsigned.
|
||||||
|
|||||||
+8
-1
@@ -90,7 +90,14 @@ grub_pci_iterate (grub_pci_iteratefunc_t hook)
|
|||||||
|
|
||||||
/* Check if there is a device present. */
|
/* Check if there is a device present. */
|
||||||
if (id >> 16 == 0xFFFF)
|
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
|
#ifdef GRUB_MACHINE_MIPS_YEELOONG
|
||||||
/* Skip ghosts. */
|
/* Skip ghosts. */
|
||||||
|
|||||||
Reference in new issue
Block a user