From f79c24b0524ca827a2c2ea206f5387d4e129a6e6 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 23 Jul 2009 15:58:38 +0000 Subject: 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(). --- sys/dev/isa/i82365_isasubr.c | 4 ++-- 1 file 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) { -- cgit v1.2.3