diff options
Diffstat (limited to 'lib/format1/layout.c')
-rw-r--r-- | lib/format1/layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/format1/layout.c b/lib/format1/layout.c index de9b206c..14a7eaf2 100644 --- a/lib/format1/layout.c +++ b/lib/format1/layout.c @@ -153,7 +153,7 @@ int calculate_extent_count(struct physical_volume *pv, uint32_t extent_size, pvd->pe_start = _round_up(end, LVM1_PE_ALIGN); - } while ((pvd->pe_start + (pvd->pe_total * extent_size)) + } while ((pvd->pe_start + ((uint64_t)pvd->pe_total * extent_size)) > pv->size); if (pvd->pe_total > MAX_PE_TOTAL) { |