NeilBrown: Add missing 'continue' in Grow_restart.

Martin F. Krafft madduck at alioth.debian.org
Wed Jan 27 02:01:08 UTC 2010


Module: mdadm
Branch: build
Commit: 22e305169f02253890da169b90678da48ffa5120
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=22e305169f02253890da169b90678da48ffa5120

Author: NeilBrown <neilb at suse.de>
Date:   Tue Oct 20 15:36:49 2009 +1100

Add missing 'continue' in Grow_restart.

Thus we weren't checking the uuid properly.

Signed-off-by: NeilBrown <neilb at suse.de>

---

 Grow.c |    1 +
 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 */
 




More information about the pkg-mdadm-commits mailing list