mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 23:02:40 +00:00
disk/ahci: Fix device_map_range argument.
Argument is not used on x86, hence it's gone unnoticed. Found by: Coverity scan.
This commit is contained in:
1 parent
7d97335942
commit
2a8200bba8
1 file changed
+1
-1
@@ -198,7 +198,7 @@ grub_ahci_pciinit (grub_pci_device_t dev,
|
||||
| GRUB_PCI_COMMAND_MEM_ENABLED);
|
||||
|
||||
hba = grub_pci_device_map_range (dev, bar & GRUB_PCI_ADDR_MEM_MASK,
|
||||
sizeof (hba));
|
||||
sizeof (*hba));
|
||||
grub_dprintf ("ahci", "dev: %x:%x.%x\n", dev.bus, dev.device, dev.function);
|
||||
|
||||
grub_dprintf ("ahci", "tfd[0]: %x\n",
|
||||
|
||||
Reference in new issue
Block a user