artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdd1445
)
Fix stupid bug in previous.
author
miod
<miod@openbsd.org>
Mon, 3 Apr 2023 18:59:47 +0000
(18:59 +0000)
committer
miod
<miod@openbsd.org>
Mon, 3 Apr 2023 18:59:47 +0000
(18:59 +0000)
sys/dev/pci/sti_pci.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/sti_pci.c
b/sys/dev/pci/sti_pci.c
index
4375f11
..
a84f3f3
100644
(file)
--- a/
sys/dev/pci/sti_pci.c
+++ b/
sys/dev/pci/sti_pci.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: sti_pci.c,v 1.1
1 2023/02/20 11:31:16
miod Exp $ */
+/* $OpenBSD: sti_pci.c,v 1.1
2 2023/04/03 18:59:47
miod Exp $ */
/*
* Copyright (c) 2006, 2007, 2023 Miodrag Vallat.
@@
-497,7
+497,7
@@
sti_pcirom_walk(struct sti_softc *sc, bus_space_tag_t romt,
break;
}
- bus_space_read_region_1(romt, romh, dsoffs,
+ bus_space_read_region_1(romt, romh,
offs +
dsoffs,
(uint8_t *)&ds, sizeof ds);
/* convert sizes to host endianness */
ds.dslen = letoh16(ds.dslen);