]> sourceware.org Git - lvm2.git/commitdiff
Fix NULL pointer dereference for too large MDA error path
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 26 Oct 2010 09:13:13 +0000 (09:13 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 26 Oct 2010 09:13:13 +0000 (09:13 +0000)
Replace dereference of NULL vg with passed vgname to the function
_vg_read_raw_area() in the error path for too large MDA.

WHATS_NEW
lib/format_text/format-text.c

index 22ad5627745d00a737af534e527ab829cc112542..f4312d827381f62f6ded2c175a1b83375f037463 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -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.
index eee01147bddeef0ed8631753f48267bbf927996d..0102a158ada61ccc14703b44377abe40417862cd 100644 (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;
        }
 
This page took 0.047039 seconds and 5 git commands to generate.