Thread (8 messages) 8 messages, 2 authors, 2013-07-23
STALE4724d

[PATCH 5/6] DDF: add_other_bvd: fix endianness bug

From: <hidden>
Date: 2013-07-21 17:28:23
Subsystem: the rest · Maintainer: Linus Torvalds

---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help