From ba639a52b46c39ec84003b2f94a298ac65a0c211 Mon Sep 17 00:00:00 2001 From: miod Date: Mon, 3 Apr 2023 18:59:47 +0000 Subject: [PATCH] Fix stupid bug in previous. --- sys/dev/pci/sti_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1