mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmetad: require meta_lookup
Coverity: do not call update_pvid_to_vgid() with meta_lookup == NULL since it is dereferencing it.
This commit is contained in:
parent
91bde0f4a1
commit
f66fe2c444
@ -931,7 +931,7 @@ static int remove_metadata(lvmetad_state *s, const char *vgid, int update_pvids)
|
||||
unlock_vgid_to_metadata(s);
|
||||
|
||||
/* update_pvid_to_vgid will clear/free the pvid_to_vgid hash */
|
||||
if (update_pvids)
|
||||
if (update_pvids && meta_lookup)
|
||||
update_pvid_to_vgid(s, meta_lookup, "#orphan", 0);
|
||||
|
||||
/* free the unmapped data */
|
||||
|
Loading…
Reference in New Issue
Block a user