Add missing 'continue' in Grow_restart.
Thus we weren't checking the uuid properly. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
6636f0efb3
commit
22e305169f
1
Grow.c
1
Grow.c
|
@ -1605,6 +1605,7 @@ int Grow_restart(struct supertype *st, struct mdinfo *info, int *fdlist, int cnt
|
|||
continue; /* bad checksum */
|
||||
if (memcmp(bsb.magic, "md_backup_data-2", 16) == 0 &&
|
||||
bsb.sb_csum2 != bsb_csum((char*)&bsb, ((char*)&bsb.sb_csum2)-((char*)&bsb)))
|
||||
continue; /* Bad second checksum */
|
||||
if (memcmp(bsb.set_uuid,info->uuid, 16) != 0)
|
||||
continue; /* Wrong uuid */
|
||||
|
||||
|
|
Loading…
Reference in New Issue