Skip to content

Commit c43f484

Browse files
shparkretrage
authored andcommitted
pci: Probe sixth BAR as well
Current implementation only probes to the fifth BAR Signed-off-by: Seonghyun Park <[email protected]>
1 parent ee69446 commit c43f484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pci.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ impl PciDevice {
178178
let mut current_bar = 0;
179179

180180
//0x24 offset is last bar
181-
while current_bar_offset < 0x24 {
181+
while current_bar_offset <= 0x24 {
182182
#[allow(clippy::blacklisted_name)]
183183
let bar = self.read_u32(current_bar_offset);
184184

0 commit comments

Comments
 (0)