mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Don't segfault in vg_release when vg->cmd is NULL.
Sun May 3 13:06:14 CEST 2009 Petr Rockai <me@mornfall.net> * Don't segfault in vg_release when vg->cmd is NULL. Author: Petr Rockai <prockai@redhat.com> Committer: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
parent
a2214e5509
commit
b91eb158d4
@ -2165,7 +2165,7 @@ void vg_release(struct volume_group *vg)
|
||||
if (!vg || !vg->vgmem)
|
||||
return;
|
||||
|
||||
if (vg->vgmem == vg->cmd->mem)
|
||||
if (vg->cmd && vg->vgmem == vg->cmd->mem)
|
||||
log_error("Internal error: global memory pool used for VG %s",
|
||||
vg->name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user