Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe Ooops.. this free should come at the end o...



details:   https://anonhg.NetBSD.org/src/rev/0c82aa72ff28
branches:  trunk
changeset: 559757:0c82aa72ff28
user:      oster <oster%NetBSD.org@localhost>
date:      Tue Mar 23 13:09:18 2004 +0000

description:
Ooops.. this free should come at the end of the loop.  Thanks
to Juergen Hannken-Illjes for pointing it out.

diffstat:

 sys/dev/raidframe/rf_states.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 9831a6b6a137 -r 0c82aa72ff28 sys/dev/raidframe/rf_states.c
--- a/sys/dev/raidframe/rf_states.c     Tue Mar 23 12:31:52 2004 +0000
+++ b/sys/dev/raidframe/rf_states.c     Tue Mar 23 13:09:18 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_states.c,v 1.34 2004/03/22 20:28:57 oster Exp $     */
+/*     $NetBSD: rf_states.c,v 1.35 2004/03/23 13:09:18 oster Exp $     */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_states.c,v 1.34 2004/03/22 20:28:57 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_states.c,v 1.35 2004/03/23 13:09:18 oster Exp $");
 
 #include <sys/errno.h>
 
@@ -620,8 +620,8 @@
                        for (i = 0; i < desc->numStripes; i++) {
                                rf_FreeDAG(dagList->dags);
                                temp = dagList;
+                               dagList = dagList->next;
                                rf_FreeDAGList(temp);
-                               dagList = dagList->next;
                        }
                        rf_MarkFailuresInASMList(raidPtr, asmh);
                        /* back up to rf_State_CreateDAG */



Home | Main Index | Thread Index | Old Index