diff options
| author | oster <oster@NetBSD.org> | 2003-12-21 19:36:31 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 2003-12-21 19:36:31 +0000 |
| commit | cdbecad002532c8fc92819cc9031543082e900fb (patch) | |
| tree | 799dc1071ba9e7117c98fc6906cc587f6e78d093 /sys/dev/raidframe/rf_map.c | |
| parent | ef0d4ed8a02ef165e02cd198396f836e6ffbe0a8 (diff) | |
(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 (limited to 'sys/dev/raidframe/rf_map.c')
| -rw-r--r-- | sys/dev/raidframe/rf_map.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/raidframe/rf_map.c b/sys/dev/raidframe/rf_map.c index dddc849c31b..83ab697d3bd 100644 --- a/sys/dev/raidframe/rf_map.c +++ b/sys/dev/raidframe/rf_map.c @@ -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_ConfigureMapModule(listp) 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); |
