[ofw] [PATCH] DAPL v2.0: cq: mixup of errno and the -1 return from poll in dapls_wait_comp_channel

Davis, Arlin R arlin.r.davis at intel.com
Fri Dec 3 16:09:34 PST 2010


call should return errno and not status returned from poll.

Signed-off-by: Pradeep Satyanarayana <pradeeps at linux.vnet.ibm.com>
---
 dapl/openib_common/cq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dapl/openib_common/cq.c b/dapl/openib_common/cq.c
index c36a766..f475d1d 100644
--- a/dapl/openib_common/cq.c
+++ b/dapl/openib_common/cq.c
@@ -296,7 +296,7 @@ dapls_wait_comp_channel(IN struct ibv_comp_channel *channel, IN uint32_t timeout
 	else if (status == 0)
 		return ETIMEDOUT;
 	else
-		return status;
+		return errno;
 }
 #endif
 
-- 
1.7.3






More information about the ofw mailing list