disk/diskfilter: Add missing lv presence check.
Found by: Coverity scan.
This commit is contained in:
parent
4c7337bfe9
commit
f2baeb194b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue