Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/raidframe (Although I want this code to Go Away, I m...



details:   https://anonhg.NetBSD.org/src/rev/42015522f975
branches:  trunk
changeset: 556610:42015522f975
user:      oster <oster%NetBSD.org@localhost>
date:      Sun Dec 21 19:36:31 2003 +0000

description:
(Although I want this code to Go Away, I might as well fix this bug for completeness)

If we don't have enough memory to allocate the pda freelist, make sure to
cleanup the asm freelist.

diffstat:

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

diffs (27 lines):

diff -r 9fb94a6b1f02 -r 42015522f975 sys/dev/raidframe/rf_map.c
--- a/sys/dev/raidframe/rf_map.c        Sun Dec 21 18:02:06 2003 +0000
+++ b/sys/dev/raidframe/rf_map.c        Sun Dec 21 19:36:31 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_map.c,v 1.21 2002/09/24 00:12:55 oster Exp $        */
+/*     $NetBSD: rf_map.c,v 1.22 2003/12/21 19:36:31 oster Exp $        */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -33,7 +33,7 @@
  **************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_map.c,v 1.21 2002/09/24 00:12:55 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_map.c,v 1.22 2003/12/21 19:36:31 oster Exp $");
 
 #include <dev/raidframe/raidframevar.h>
 
@@ -355,7 +355,7 @@
            RF_PDA_INC, sizeof(RF_PhysDiskAddr_t));
        if (rf_pda_freelist == NULL) {
                RF_FREELIST_DESTROY(rf_asmhdr_freelist, next, (RF_AccessStripeMapHeader_t *));
-               RF_FREELIST_DESTROY(rf_pda_freelist, next, (RF_PhysDiskAddr_t *));
+               RF_FREELIST_DESTROY(rf_asm_freelist, next, (RF_AccessStripeMap_t *));
                return (ENOMEM);
        }
        rc = rf_ShutdownCreate(listp, rf_ShutdownMapModule, NULL);



Home | Main Index | Thread Index | Old Index