* [PATCH] DAPL v2.0: cq: mixup of errno and the -1 return from poll in dapls_wait_comp_channel
@ 2010-12-04 0:09 Davis, Arlin R
0 siblings, 0 replies; only message in thread
From: Davis, Arlin R @ 2010-12-04 0:09 UTC (permalink / raw)
To: linux-rdma, ofw-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5; +Cc: Smith, Stan
call should return errno and not status returned from poll.
Signed-off-by: Pradeep Satyanarayana <pradeeps-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-12-04 0:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-04 0:09 [PATCH] DAPL v2.0: cq: mixup of errno and the -1 return from poll in dapls_wait_comp_channel Davis, Arlin R
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.