From: John Hodge Date: Sun, 20 May 2012 03:56:55 +0000 (+0800) Subject: Modules/LVM - Fixed a crash caused by not clearing ->Next of volume info X-Git-Tag: rel0.15~611^2~83 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=32220fa40a3b5f6d642a5471b2796b2ade8abfea;p=tpg%2Facess2.git Modules/LVM - Fixed a crash caused by not clearing ->Next of volume info --- diff --git a/KernelLand/Modules/Storage/LVM/volumes.c b/KernelLand/Modules/Storage/LVM/volumes.c index fdac4fd5..567d26f8 100644 --- a/KernelLand/Modules/Storage/LVM/volumes.c +++ b/KernelLand/Modules/Storage/LVM/volumes.c @@ -49,6 +49,7 @@ int LVM_AddVolume(const tLVM_VolType *Type, const char *Name, void *Ptr, size_t // Create real volume descriptor // TODO: If this needs to be rescanned later, having the subvolume list separate might be an idea real_vol = malloc( sizeof(tLVM_Vol) + strlen(Name) + 1 + sizeof(tLVM_SubVolume*) * dummy_vol.nSubVolumes ); + real_vol->Next = NULL; real_vol->Type = Type; real_vol->Ptr = Ptr; real_vol->BlockCount = BlockCount;