[openib-general] [PATCH] IB/core - ib_umad can cause address alignment fault on ia64

Jason Gunthorpe jgunthorpe at obsidianresearch.com
Thu Jan 18 15:07:44 PST 2007


Make the untyped data region in ib_user_mad u64 aligned so that casting
ib_user_mad to structs with u64s in them works on ia64.
---
 include/rdma/ib_user_mad.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/rdma/ib_user_mad.h b/include/rdma/ib_user_mad.h
index 44537aa..d66b15e 100644
--- a/include/rdma/ib_user_mad.h
+++ b/include/rdma/ib_user_mad.h
@@ -98,7 +98,7 @@ struct ib_user_mad_hdr {
  */
 struct ib_user_mad {
 	struct ib_user_mad_hdr hdr;
-	__u8	data[0];
+	__u64	data[0];
 };
 
 /**
-- 
1.4.1.1




More information about the general mailing list