From f70468ce0b9b27501657d700bb955f76b278f55e Mon Sep 17 00:00:00 2001 From: Dave Wysochanski Date: Tue, 12 Oct 2010 17:09:23 +0000 Subject: [PATCH] Fix lv_modules_dup segfault. --- lib/metadata/lv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.43.5