]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
DDF: __write_ddf_structure: Fix wrong reference to ddf->primary
authormwilck@arcor.de <mwilck@arcor.de>
Fri, 25 Oct 2013 10:07:32 +0000 (12:07 +0200)
committerNeilBrown <neilb@suse.de>
Tue, 23 Apr 2013 04:55:31 +0000 (14:55 +1000)
Should reference "header" instead here.

Signed-off-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c

index c5f6f5cebb4e67c65b71e305f76c7402bdf86268..32dd023787fb2d84dd53e92e54ae78950f45e452 100644 (file)
@@ -2443,7 +2443,7 @@ static int __write_ddf_structure(struct dl *d, struct ddf_super *ddf, __u8 type,
                                        &dummy);
                }
                if (c) {
-                       vdc->seqnum = ddf->primary.seq;
+                       vdc->seqnum = header->seq;
                        vdc->crc = calc_crc(vdc, conf_size);
                        if (write(fd, vdc, conf_size) < 0)
                                break;