diff options
| author | oster <oster@NetBSD.org> | 2004-03-19 02:57:34 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 2004-03-19 02:57:34 +0000 |
| commit | 5ac8fbad7fccebb69fe74654d53aab514f11a6bf (patch) | |
| tree | 3f5b6b42d4dcf6c983d25361edf44f58b0efabd1 /sys/dev/raidframe/rf_map.c | |
| parent | d3810da59bc868ba226af11931ba74af9f6fe75a (diff) | |
Add a comment. Will hopefully save time next time someone tries
to figure out where the allocated memory is freed.
Diffstat (limited to 'sys/dev/raidframe/rf_map.c')
| -rw-r--r-- | sys/dev/raidframe/rf_map.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_map.c b/sys/dev/raidframe/rf_map.c index eb4779bb576..cbaa07c545b 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.34 2004/03/19 02:27:44 oster Exp $ */ +/* $NetBSD: rf_map.c,v 1.35 2004/03/19 02:57:34 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.34 2004/03/19 02:27:44 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_map.c,v 1.35 2004/03/19 02:57:34 oster Exp $"); #include <dev/raidframe/raidframevar.h> @@ -799,6 +799,8 @@ rf_ASMParityAdjust(RF_PhysDiskAddr_t *toAdjust, /* create a second pda and copy the parity map info * into it */ RF_ASSERT(toAdjust->next == NULL); + /* the following will get freed in rf_FreeAccessStripeMap() via + rf_FreePDAList() */ new_pda = toAdjust->next = rf_AllocPhysDiskAddr(); *new_pda = *toAdjust; /* structure assignment */ new_pda->next = NULL; |
