diff options
-rw-r--r-- | src/fw/pciinit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fw/pciinit.c b/src/fw/pciinit.c index 3a2f7479..d2cea2bb 100644 --- a/src/fw/pciinit.c +++ b/src/fw/pciinit.c @@ -539,6 +539,7 @@ static u8 pci_find_resource_reserve_capability(u16 bdf) if (cap_len < RES_RESERVE_CAP_SIZE) { dprintf(1, "PCI: QEMU resource reserve cap length %d is invalid\n", cap_len); + return 0; } } return cap; |