From e62c19b256459f5431346b34e8696f886cb27d8a Mon Sep 17 00:00:00 2001 From: Scott Long Date: Mon, 14 May 2007 22:01:03 +0000 Subject: [PATCH] Eliminate M_TEMP. --- sys/dev/ciss/ciss.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c index 153ab97386db..281b308cfb99 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); } /************************************************************************