summaryrefslogtreecommitdiff
path: root/sys/dev/ic/aac.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-07-12 18:48:54 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-07-12 18:48:54 +0000
commit9355adab6702f4798111e38a2e7e7be541270937 (patch)
tree1fda49353b276c780d60c7609e331839f2c13505 /sys/dev/ic/aac.c
parent48b6cac396e42c57b5037f5a67d6cd7afb1733d6 (diff)
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
Diffstat (limited to 'sys/dev/ic/aac.c')
-rw-r--r--sys/dev/ic/aac.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ic/aac.c b/sys/dev/ic/aac.c
index d59dfd0176b..37dcde32940 100644
--- a/sys/dev/ic/aac.c
+++ b/sys/dev/ic/aac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aac.c,v 1.63 2014/07/08 17:19:25 deraadt Exp $ */
+/* $OpenBSD: aac.c,v 1.64 2014/07/12 18:48:17 tedu Exp $ */
/*-
* Copyright (c) 2000 Michael Smith
@@ -470,7 +470,7 @@ aac_free(struct aac_softc *sc)
if (sc->aac_fib_dmat)
bus_dma_tag_destroy(sc->aac_fib_dmat);
- free(sc->aac_commands, M_AACBUF);
+ free(sc->aac_commands, M_AACBUF, 0);
/* destroy the common area */
if (sc->aac_common) {
@@ -526,7 +526,7 @@ aac_detach(device_t dev)
if (error)
return (error);
TAILQ_REMOVE(&sc->aac_container_tqh, co, co_link);
- free(co, M_AACBUF);
+ free(co, M_AACBUF, 0);
}
/* Remove the CAM SIMs */
@@ -535,7 +535,7 @@ aac_detach(device_t dev)
error = device_delete_child(dev, sim->sim_dev);
if (error)
return (error);
- free(sim, M_AACBUF);
+ free(sim, M_AACBUF, 0);
}
if (sc->aifflags & AAC_AIFFLAGS_RUNNING) {
@@ -1267,7 +1267,7 @@ aac_alloc_commands(struct aac_softc *sc)
exit_map:
bus_dmamem_free(sc->aac_dmat, &fm->aac_seg, fm->aac_nsegs);
exit_alloc:
- free(fm, M_DEVBUF);
+ free(fm, M_DEVBUF, 0);
exit:
AAC_LOCK_RELEASE(&sc->aac_io_lock);
return (error);
@@ -1301,7 +1301,7 @@ aac_free_commands(struct aac_softc *sc)
bus_dmamem_unmap(sc->aac_dmat, (caddr_t)fm->aac_fibs,
AAC_FIBMAP_SIZE);
bus_dmamem_free(sc->aac_dmat, &fm->aac_seg, fm->aac_nsegs);
- free(fm, M_DEVBUF);
+ free(fm, M_DEVBUF, 0);
}
}