summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2007-05-14 22:01:03 +0000
committerscottl <scottl@FreeBSD.org>2007-05-14 22:01:03 +0000
commit2b1170b7f0d8d7f8db62041decf2e8933d65441d (patch)
tree5fa75422422c10312a1830e41425dbb63badb9f8 /sys/dev
parentdf8de31591e57ce88e7c35716ba233b00c120316 (diff)
downloadFreeBSD-src-2b1170b7f0d8d7f8db62041decf2e8933d65441d.zip
FreeBSD-src-2b1170b7f0d8d7f8db62041decf2e8933d65441d.tar.gz
Eliminate M_TEMP.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ciss/ciss.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c
index 153ab97..281b308 100644
--- a/sys/dev/ciss/ciss.c
+++ b/sys/dev/ciss/ciss.c
@@ -2552,7 +2552,7 @@ ciss_cam_rescan_target(struct ciss_softc *sc, int bus, int target)
debug_called(1);
- if ((ccb = malloc(sizeof(union ccb), M_TEMP, M_NOWAIT | M_ZERO)) == NULL) {
+ if ((ccb = malloc(sizeof(union ccb), CISS_MALLOC_CLASS, M_NOWAIT | M_ZERO)) == NULL) {
ciss_printf(sc, "rescan failed (can't allocate CCB)\n");
return;
}
@@ -2560,7 +2560,7 @@ ciss_cam_rescan_target(struct ciss_softc *sc, int bus, int target)
if (xpt_create_path(&path, xpt_periph, cam_sim_path(sc->ciss_cam_sim[bus]),
target, CAM_LUN_WILDCARD) != CAM_REQ_CMP) {
ciss_printf(sc, "rescan failed (can't create path)\n");
- free(ccb, M_TEMP);
+ free(ccb, CISS_MALLOC_CLASS);
return;
}
@@ -2591,7 +2591,7 @@ static void
ciss_cam_rescan_callback(struct cam_periph *periph, union ccb *ccb)
{
xpt_free_path(ccb->ccb_h.path);
- free(ccb, M_TEMP);
+ free(ccb, CISS_MALLOC_CLASS);
}
/************************************************************************
OpenPOWER on IntegriCloud