mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +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:
parent
122ba73eaf
commit
54fca7b1ca
@ -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
|
||||
===================================
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user