Unverified Commit ec8c5f98 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents 06ed1b21 05e7a9d2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -98,6 +98,12 @@ static size_t pci_get_rom_size(struct pci_dev *pdev, void __iomem *rom,
		}
		/* get the PCI data structure and check its "PCIR" signature */
		pds = image + readw(image + 24);
		/* The PCIR data structure must begin on a 4-byte boundary */
		if (!IS_ALIGNED((unsigned long)pds, 4)) {
			pci_info(pdev, "Invalid PCI ROM header signature: PCIR %#06x\n",
				 readw(image + 24));
			break;
		}
		if (readl(pds) != 0x52494350) {
			pci_info(pdev, "Invalid PCI ROM data signature: expecting 0x52494350, got %#010x\n",
				 readl(pds));