diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-07-23 15:58:38 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-07-23 15:58:38 +0000 |
commit | f79c24b0524ca827a2c2ea206f5387d4e129a6e6 (patch) | |
tree | 16f43d6235ac3210c3ea44614fd5a4bca47d2145 /sys/dev/isa | |
parent | bb70924ff1829701e4a340e56ad86743e511a4c8 (diff) |
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().
Diffstat (limited to 'sys/dev/isa')
-rw-r--r-- | sys/dev/isa/i82365_isasubr.c | 4 |
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) { |