mirror of
git://sourceware.org/git/lvm2.git
synced 2025-11-13 20:23:50 +03:00
Check if info struct returned is not NULL.
Just some missing checks revealed by Coverity in recent code.
This commit is contained in:
@@ -1455,6 +1455,9 @@ static int _text_pv_read(const struct format_type *fmt, const char *pv_name,
|
||||
info = label->info;
|
||||
}
|
||||
|
||||
if (!info)
|
||||
return_0;
|
||||
|
||||
if (!lvmcache_populate_pv_fields(info, pv, scan_label_only))
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user