call should return errno and not status returned from poll.

Signed-off-by: Pradeep Satyanarayana <[email protected]>
---
 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



_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to