summaryrefslogtreecommitdiffstats
path: root/Grow.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-10-20 15:36:49 +1100
committerNeilBrown <neilb@suse.de>2009-10-20 15:36:49 +1100
commit22e305169f02253890da169b90678da48ffa5120 (patch)
treead20acf4fed6894dd6dafff550821791df13e51c /Grow.c
parent6636f0efb3384b29ffb38da5e163b9f904e90b76 (diff)
downloadmdadm-22e305169f02253890da169b90678da48ffa5120.tar.gz
mdadm-22e305169f02253890da169b90678da48ffa5120.tar.xz
mdadm-22e305169f02253890da169b90678da48ffa5120.zip
Add missing 'continue' in Grow_restart.
Thus we weren't checking the uuid properly. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Grow.c')
-rw-r--r--Grow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Grow.c b/Grow.c
index 9eb637c..554649a 100644
--- a/Grow.c
+++ b/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 */