Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Commit 3b3daa3

Browse files
committed
pci: ignore zero io region base address
1 parent f90f27e commit 3b3daa3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

js/core/pci/scan.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,11 @@ function PciDevice(address, pciAccessor) {
553553
return null;
554554
}
555555

556+
// Base IO address 0 is probably an error, ignore it
557+
if (0 === base) {
558+
return null;
559+
}
560+
556561
obj = io.subrange(base, base + size - 1);
557562
} else {
558563
base = (barAddr & 0xfffffff0) >>> 0;

0 commit comments

Comments
 (0)