diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-06-15 06:43:20 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-06-15 06:43:20 +0000 |
commit | 758fc47fd1f55010b918727451ac79d0c1119bec (patch) | |
tree | 87edba3ce42df6e254a3225434dc79b3fc1dde04 /sys | |
parent | a52e8989f333415b7df95e47c440c265a38b81c5 (diff) |
unmap/free memory as well on detach.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pcmcia/gpr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pcmcia/gpr.c b/sys/dev/pcmcia/gpr.c index 1bc7cfc5af8..3a7675580f9 100644 --- a/sys/dev/pcmcia/gpr.c +++ b/sys/dev/pcmcia/gpr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gpr.c,v 1.1 2002/06/15 05:55:59 fgsch Exp $ */ +/* $OpenBSD: gpr.c,v 1.2 2002/06/15 06:43:19 fgsch Exp $ */ /* * Copyright (c) 2002, Federico G. Schwindt @@ -245,6 +245,8 @@ gpr_detach(struct device *dev, int flags) pcmcia_io_unmap(sc->sc_pf, sc->sc_iowin); pcmcia_io_free(sc->sc_pf, &sc->sc_pioh); + pcmcia_mem_unmap(sc->sc_pf, sc->sc_memwin); + pcmcia_mem_free(sc->sc_pf, &sc->sc_pmemh); return (0); } |