From 821ad1783261ea44b3cd8643bd39980010f72d72 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Mon, 15 May 2006 23:31:25 +0000 Subject: Clear all relevant ccb fields when mfi_put_ccb frees a ccb. --- sys/dev/ic/mfi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c index d3f41be5c94..071278af86c 100644 --- a/sys/dev/ic/mfi.c +++ b/sys/dev/ic/mfi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfi.c,v 1.27 2006/05/15 23:28:41 marco Exp $ */ +/* $OpenBSD: mfi.c,v 1.28 2006/05/15 23:31:24 marco Exp $ */ /* * Copyright (c) 2006 Marco Peereboom * @@ -130,7 +130,10 @@ mfi_put_ccb(struct mfi_ccb *ccb) ccb->ccb_xs = NULL; ccb->ccb_flags = 0; ccb->ccb_done = NULL; + ccb->ccb_direction = 0; + ccb->ccb_frame_size = 0; ccb->ccb_extra_frames = 0; + ccb->ccb_sgl = NULL; TAILQ_INSERT_TAIL(&sc->sc_ccb_freeq, ccb, ccb_link); splx(s); } -- cgit v1.2.3