1
0
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:
Peter Rajnoha
2012-04-10 12:26:27 +00:00
parent 6e826bb6a4
commit cb08b8eb7e
2 changed files with 6 additions and 2 deletions

View File

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