mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-11 09:18:25 +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:
parent
9bd893bbc7
commit
810abed9ea
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.76
|
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.
|
Use static for internal _align_chunk() and _new_chunk() from pool-fast.c.
|
||||||
Fix vgchange to process -a, --refresh, --monitor and --poll like lvchange.
|
Fix vgchange to process -a, --refresh, --monitor and --poll like lvchange.
|
||||||
Add lvm2app functions to query any pv, vg, or lv property / report field.
|
Add lvm2app functions to query any pv, vg, or lv property / report field.
|
||||||
|
@ -507,7 +507,7 @@ static struct volume_group *_vg_read_raw_area(struct format_instance *fid,
|
|||||||
|
|
||||||
if (wrap > rlocn->offset) {
|
if (wrap > rlocn->offset) {
|
||||||
log_error("VG %s metadata too large for circular buffer",
|
log_error("VG %s metadata too large for circular buffer",
|
||||||
vg->name);
|
vgname);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user