summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2009-07-23 15:58:37 +0000
committermiod <miod@openbsd.org>2009-07-23 15:58:37 +0000
commit77d0b3b345837b848536d0ee6add521685e260db (patch)
tree8fa2d69af8740dee6abae748066f7ceef841049b
parentRevert r1.5, I don't like it, new sessions should start off identically - with (diff)
downloadwireguard-openbsd-77d0b3b345837b848536d0ee6add521685e260db.tar.xz
wireguard-openbsd-77d0b3b345837b848536d0ee6add521685e260db.zip
What gets allocated with bus_space_map() needs to be released with
bus_space_unmap(), not bus_space_free(). Fortunately this file is only used on i386 where bus_space_free() simply invokes bus_space_unmap().
-rw-r--r--sys/dev/isa/i82365_isasubr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/i82365_isasubr.c b/sys/dev/isa/i82365_isasubr.c
index f796d527ce9..1e0f7eac403 100644
--- a/sys/dev/isa/i82365_isasubr.c
+++ b/sys/dev/isa/i82365_isasubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i82365_isasubr.c,v 1.21 2006/03/12 01:38:34 brad Exp $ */
+/* $OpenBSD: i82365_isasubr.c,v 1.22 2009/07/23 15:58:37 miod Exp $ */
/* $NetBSD: i82365_isasubr.c,v 1.1 1998/06/07 18:28:31 sommerfe Exp $ */
/*
@@ -155,7 +155,7 @@ pcic_isa_bus_width_probe(sc, iot, ioh, base, length)
}
}
- bus_space_free(iot, ioh_high, length);
+ bus_space_unmap(iot, ioh_high, length);
sc->ranges = pcic_isa_addr;
if (iobuswidth == 10) {