Detect error from id_read_format() function.
Version 2.02.99 -
===================================
+ Check for failing id_read_format() in _pv_populate_lvmcache.
Fix memleak on error path for lvmetad's pv_found.
Unlock vg mutex in error path when lvmetad tries to lock_vg.
Add check for key string duplication in config_make_nodes_v.
return NULL;
}
- if (vgid_txt)
- id_read_format(&vgid, vgid_txt);
- else
+ if (vgid_txt) {
+ if (!id_read_format(&vgid, vgid_txt))
+ return_NULL;
+ } else
strcpy((char*)&vgid, fmt->orphan_vg_name);
if (!vgname)