mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmlockd: fix segfault in error path
The log_debug statement was ignoring the NULL vg error case.
This commit is contained in:
parent
bd96036835
commit
49a1c4d4b0
3
lib/cache/lvmetad.c
vendored
3
lib/cache/lvmetad.c
vendored
@ -2061,7 +2061,8 @@ scan_more:
|
||||
dm_config_destroy(vgmeta_ret);
|
||||
}
|
||||
out:
|
||||
log_debug_lvmetad("Rescan VG %s done (seqno %u).", vg_ret->name, vg_ret->seqno);
|
||||
if (vg_ret)
|
||||
log_debug_lvmetad("Rescan VG %s done (seqno %u).", vg_ret->name, vg_ret->seqno);
|
||||
return vg_ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user