Fix an infinite loop created when the last logical partition is
removed.
This commit is contained in:
parent
4e8204fbc1
commit
507a0d4a6c
@ -561,9 +561,9 @@ g_part_ebr_write(struct g_part_table *basetable, struct g_consumer *cp)
|
||||
le32enc(p + 8, entry->ent.dp_start);
|
||||
le32enc(p + 12, entry->ent.dp_size);
|
||||
|
||||
do {
|
||||
next = LIST_NEXT(baseentry, gpe_entry);
|
||||
} while (next != NULL && next->gpe_deleted);
|
||||
next = LIST_NEXT(baseentry, gpe_entry);
|
||||
while (next != NULL && next->gpe_deleted)
|
||||
next = LIST_NEXT(next, gpe_entry);
|
||||
|
||||
p += DOSPARTSIZE;
|
||||
if (next != NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user