Should reference "header" instead here. Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- super-ddf.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/super-ddf.c b/super-ddf.c index c5f6f5c..32dd023 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -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; -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html