--- super-ddf.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/super-ddf.c b/super-ddf.c index bd42194..ff71be2 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -949,7 +949,8 @@ static void add_other_bvd(struct vcl *vcl, struct vd_config *vd, break; if (i < vcl->conf.sec_elmnt_count-1) { - if (vd->seqnum <= vcl->other_bvds[i]->seqnum) + if (be32_to_cpu(vd->seqnum) <= + be32_to_cpu(vcl->other_bvds[i]->seqnum)) return; } else { for (i = 0; i < vcl->conf.sec_elmnt_count-1; i++) -- 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