Skip to content

Commit 083d795

Browse files
rizlikCopilot
andauthored
Update src/pci.c
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 45edf98 commit 083d795

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
@@ -446,7 +446,7 @@ static int pci_program_bar(uint8_t bus, uint8_t dev, uint8_t fun,
446446
orig_bar2 = pci_config_read32(bus, dev, fun, bar_off + 4);
447447

448448
/* rewrite 0xff..ff mask and re-read the first BAR value, specs
449-
* requires to wirte the mask on both registers before reading
449+
* requires to write the mask on both registers before reading
450450
* the sizes back */
451451
pci_config_write32(bus, dev, fun, bar_off, 0xffffffff);
452452
pci_config_write32(bus, dev, fun, bar_off + 4, 0xffffffff);

0 commit comments

Comments
 (0)