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

Jason Gunthorpe jgunthorpe at obsidianresearch.com
Fri Jan 19 10:58:49 PST 2007


On Fri, Jan 19, 2007 at 03:10:24PM +0200, Michael S. Tsirkin wrote:

> Jason, while the patch is a one-liner, I think you should
> indicate that you can certify the Developer's Certificate of Origin 1.1

Ah yes, sorry. I should have included that. I do agree to the DCO for
this patch.

---------------

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.

Signed-off-by: Jason Gunthorpe <jgunthorpe at obsidianresearch.com>

---
 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