From: Dave Wysochanski Date: Tue, 12 Oct 2010 17:09:23 +0000 (+0000) Subject: Fix lv_modules_dup segfault. X-Git-Tag: v2_02_91~1485 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=f70468ce0b9b27501657d700bb955f76b278f55e;p=lvm2.git Fix lv_modules_dup segfault. --- diff --git a/lib/metadata/lv.c b/lib/metadata/lv.c index 634e21d05..f379c3e4f 100644 --- a/lib/metadata/lv.c +++ b/lib/metadata/lv.c @@ -31,7 +31,7 @@ char *lv_modules_dup(struct dm_pool *mem, const struct logical_volume *lv) if (!list_lv_modules(mem, lv, modules)) return_NULL; - return tags_format_and_copy(lv->vg->vgmem, modules); + return tags_format_and_copy(mem, modules); } char *lv_mirror_log_dup(struct dm_pool *mem, const struct logical_volume *lv)