* commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
Reported by: Seth Goldberg.
This commit is contained in:
parent
c837af3f38
commit
7620e7debd
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
|
||||||
|
Reported by: Seth Goldberg.
|
||||||
|
|
||||||
2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
|
2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
|
* loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
|
||||||
|
|
|
@ -96,7 +96,7 @@ grub_setpci_iter (grub_pci_device_t dev, grub_pci_id_t pciid)
|
||||||
if (check_device && grub_pci_get_device (dev) != device)
|
if (check_device && grub_pci_get_device (dev) != device)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (check_function && grub_pci_get_function (dev) != device)
|
if (check_function && grub_pci_get_function (dev) != function)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
addr = grub_pci_make_address (dev, regaddr);
|
addr = grub_pci_make_address (dev, regaddr);
|
||||||
|
|
Loading…
Reference in a new issue