[openib-general] [PATCH] mad_rmpp: Fix non first segment copying in ib_coalesce_recv_mad
Hal Rosenstock
halr at voltaire.com
Thu Jun 30 09:13:07 PDT 2005
mad_rmpp: Fix non first segment copying in ib_coalesce_recv_mad
Signed-off-by: Hal Rosenstock <halr at voltaire.com>
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
More information about the general
mailing list