diff mbox

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

Message ID E3280858FA94444CA49D2BA02341C983011C4D956C@orsmsx506.amr.corp.intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Arlin Davis Dec. 4, 2010, 12:09 a.m. UTC
None
diff mbox

Patch

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