summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/device/pci_rom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/pci_rom.c b/src/device/pci_rom.c
index 34a9a81a5222..2b2d46d57b30 100644
--- a/src/device/pci_rom.c
+++ b/src/device/pci_rom.c
@@ -192,7 +192,7 @@ static struct rom_header *check_initialized(struct device *dev)
return NULL;
rom_data = (struct pci_data *)((u8 *)run_rom
- + read_le32(&run_rom->data));
+ + read_le16(&run_rom->data));
if (read_le32(&rom_data->signature) == PCI_DATA_HDR
&& read_le16(&rom_data->device) == dev->device