From 7e8ad960086aab574b534dcff118a841493bc45a Mon Sep 17 00:00:00 2001 From: oster Date: Mon, 22 Mar 2004 20:28:57 +0000 Subject: [PATCH] If the DAG failed, need to make sure we wipe the dagList structures too. --- sys/dev/raidframe/rf_states.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/raidframe/rf_states.c b/sys/dev/raidframe/rf_states.c index 5372b7016c53..400e208044b0 100644 --- a/sys/dev/raidframe/rf_states.c +++ b/sys/dev/raidframe/rf_states.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_states.c,v 1.33 2004/03/21 21:20:46 oster Exp $ */ +/* $NetBSD: rf_states.c,v 1.34 2004/03/22 20:28:57 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: rf_states.c,v 1.33 2004/03/21 21:20:46 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_states.c,v 1.34 2004/03/22 20:28:57 oster Exp $"); #include @@ -620,6 +620,7 @@ rf_State_ProcessDAG(RF_RaidAccessDesc_t *desc) for (i = 0; i < desc->numStripes; i++) { rf_FreeDAG(dagList->dags); temp = dagList; + rf_FreeDAGList(temp); dagList = dagList->next; } rf_MarkFailuresInASMList(raidPtr, asmh);