mad_rmpp: Fix non first segment copying in ib_coalesce_recv_mad
Signed-off-by: Hal Rosenstock <[EMAIL PROTECTED]>
Index: mad_rmpp.c
===================================================================
--- mad_rmpp.c (revision 2757)
+++ mad_rmpp.c (working copy)
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2005 Intel Inc. All rights reserved.
+ * Copyright (c) 2005 Voltaire, Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
@@ -443,7 +444,7 @@
data = rmpp_mad;
size = sizeof(*rmpp_mad);
} else {
- data = rmpp_mad + offset;
+ data = (void *)rmpp_mad + offset;
if (flags & IB_MGMT_RMPP_FLAG_LAST)
size = len;
else
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general