[PATCH 04/30] Fix NULL pointer dereference
Zdenek Kabelac <[email protected]>
| Newsgroups | dev.linux.lists.lvm-devel |
|---|---|
| Message-ID | <12027a536f66f50657c23bb7bed13380c590f423.1287994529.git.zkabelac@redhat.com> |
vg pointer is not yet initialized in this place and vgname must be used. Signed-off-by: Zdenek Kabelac <[email protected]> --- 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