diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2006-05-15 23:31:25 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2006-05-15 23:31:25 +0000 |
commit | 821ad1783261ea44b3cd8643bd39980010f72d72 (patch) | |
tree | f2e297dc9319926713045523425facc849cb3e99 /sys/dev | |
parent | fea35cf3d59a2f4ba5d7917cefd567b6d026bc86 (diff) |
Clear all relevant ccb fields when mfi_put_ccb frees a ccb.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/mfi.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <marco@peereboom.us> * @@ -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); } |