Message ID | b6a267d51d626ebf29ff37fda947dc8aacefd883.1452564770.git.chen.fan.fnst@cn.fujitsu.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c index 0eab29d..8f4c0e5 100644 --- a/hw/pci/pcie.c +++ b/hw/pci/pcie.c @@ -607,7 +607,7 @@ void pcie_add_capability(PCIDevice *dev, assert(offset >= PCI_CONFIG_SPACE_SIZE); assert(offset < offset + size); - assert(offset + size < PCIE_CONFIG_SPACE_SIZE); + assert(offset + size <= PCIE_CONFIG_SPACE_SIZE); assert(size >= 8); assert(pci_is_express(dev));