1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-31 14:50:37 +03:00

Remove reset of vg->vgmem pointer as it is access of already release memory

This reset of vgmem pointer causes access of already released memory.
(_vg_make_handle allocates vg from vgmem pool itself - which is a bit tricky)

Interestingly this memory fault was missed by our test suite.
This commit is contained in:
Zdenek Kabelac 2010-12-08 10:45:37 +00:00
parent 200675b506
commit 1e9221af45
2 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.79 -
===================================
Fix write to released memory in vg_relase(). (2.02.78)
Version 2.02.78 - 6th December 2010
===================================

View File

@ -3094,7 +3094,6 @@ void vg_release(struct volume_group *vg)
vg->name);
dm_pool_destroy(vg->vgmem);
vg->vgmem = NULL;
}
/* This is only called by lv_from_lvid, which is only called from