Skip to content

Commit 0cfa11f

Browse files
committed
pci: fix: use off instead of addr in bar restore path
1 parent b25683c commit 0cfa11f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ static int pci_program_bar(uint8_t bus, uint8_t dev, uint8_t fun,
505505
return 0;
506506

507507
restore_bar:
508-
pci_config_write32(bus, dev, fun, bar_idx, orig_bar);
508+
pci_config_write32(bus, dev, fun, bar_off, orig_bar);
509509

510510
return ret;
511511
}

0 commit comments

Comments
 (0)