Modules/LVM - Fixed uninitalised value
authorJohn Hodge <[email protected]>
Thu, 14 Jun 2012 08:38:58 +0000 (16:38 +0800)
committerJohn Hodge <[email protected]>
Thu, 14 Jun 2012 08:38:58 +0000 (16:38 +0800)
KernelLand/Modules/Storage/LVM/volumes.c

index 567d26f..fafa1f3 100644 (file)
@@ -55,6 +55,7 @@ int LVM_AddVolume(const tLVM_VolType *Type, const char *Name, void *Ptr, size_t
        real_vol->BlockCount = BlockCount;
        real_vol->nSubVolumes = dummy_vol.nSubVolumes;
        real_vol->SubVolumes = (void*)( real_vol->Name + strlen(Name) + 1 );
+       real_vol->BlockSize = BlockSize;
        strcpy(real_vol->Name, Name);
        memset(real_vol->SubVolumes, 0, sizeof(tLVM_SubVolume*) * real_vol->nSubVolumes);
        // - VFS Nodes

UCC git Repository :: git.ucc.asn.au