From: miod Date: Mon, 3 Apr 2023 18:59:47 +0000 (+0000) Subject: Fix stupid bug in previous. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ba639a52b46c39ec84003b2f94a298ac65a0c211;p=openbsd Fix stupid bug in previous. --- diff --git a/sys/dev/pci/sti_pci.c b/sys/dev/pci/sti_pci.c index 4375f11d2e6..a84f3f394e1 100644 --- a/sys/dev/pci/sti_pci.c +++ b/sys/dev/pci/sti_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sti_pci.c,v 1.11 2023/02/20 11:31:16 miod Exp $ */ +/* $OpenBSD: sti_pci.c,v 1.12 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);