[lvm-devel] [PATCH 04/30] Fix NULL pointer dereference
Zdenek Kabelac
zkabelac at redhat.com
Mon Oct 25 08:24:11 UTC 2010
vg pointer is not yet initialized in this place and vgname must be used.
Signed-off-by: Zdenek Kabelac <zkabelac at redhat.com>
---
lib/format_text/format-text.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/format_text/format-text.c b/lib/format_text/format-text.c
index eee0114..0102a15 100644
--- a/lib/format_text/format-text.c
+++ b/lib/format_text/format-text.c
@@ -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;
}
--
1.7.3.1
More information about the lvm-devel
mailing list