1
0
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:
Dave Wysochanski 2009-07-01 17:03:38 +00:00
parent a2214e5509
commit b91eb158d4

View File

@ -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);