[openib-general] [PATCH] kdapl: fix private data copying on incoming REQ

Hal Rosenstock halr at voltaire.com
Tue May 10 07:45:01 PDT 2005


Fix private data copying on incoming REQ
Also, fix a typo

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

Index: dapl_cr_callback.c
===================================================================
--- dapl_cr_callback.c	(revision 2292)
+++ dapl_cr_callback.c	(working copy)
@@ -124,7 +124,7 @@
 	case DAT_CONNECTION_REQUEST_EVENT:
 		{
 			/*
-			 * Requests arriving on a disabled SP are immediatly rejected
+			 * Requests arriving on a disabled SP are immediately rejected
 			 */
 
 			spin_lock(&sp_ptr->header.lock);
@@ -298,10 +298,10 @@
 	if (prd_ptr == NULL) {
 		cr_ptr->param.private_data_size = 0;
 	} else {
-		cr_ptr->param.private_data_size = IB_MAX_REP_PDATA_SIZE;
-                memcpy(cr_ptr->private_data,
-                               prd_ptr,
-                               IB_MAX_REP_PDATA_SIZE);
+		cr_ptr->param.private_data_size = IB_MAX_REQ_PDATA_SIZE;
+		memcpy(cr_ptr->private_data,
+			       prd_ptr,
+			       IB_MAX_REQ_PDATA_SIZE);
 	}
 
 	/* EP will be NULL unless RSP service point */






More information about the general mailing list