disk/diskfilter: Add missing lv presence check.

Found by: Coverity scan.
This commit is contained in:
Vladimir Serbinenko 2015-01-24 21:44:27 +01:00
parent 4c7337bfe9
commit f2baeb194b

View file

@ -1065,7 +1065,7 @@ grub_diskfilter_make_raid (grub_size_t uuidlen, char *uuid, int nmemb,
array->lvs->segments->extent_count = totsize;
}
if (array->lvs->segments
if (array->lvs && array->lvs->segments
&& array->lvs->segments->raid_member_size > disk_size)
array->lvs->segments->raid_member_size = disk_size;