1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-23 21:35:29 +03:00

Fix NULL pointer dereference for too large MDA error path

Replace dereference of NULL vg with passed vgname to the function
_vg_read_raw_area() in the error path for too large MDA.
This commit is contained in:
Zdenek Kabelac 2010-10-26 09:13:13 +00:00
parent 9bd893bbc7
commit 810abed9ea
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.76
===================================
Fix NULL pointer dereference for too large MDA error path in _vg_read_raw_area().
Use static for internal _align_chunk() and _new_chunk() from pool-fast.c.
Fix vgchange to process -a, --refresh, --monitor and --poll like lvchange.
Add lvm2app functions to query any pv, vg, or lv property / report field.

View File

@ -507,7 +507,7 @@ static struct volume_group *_vg_read_raw_area(struct format_instance *fid,
if (wrap > rlocn->offset) {
log_error("VG %s metadata too large for circular buffer",
vg->name);
vgname);
goto out;
}