Hello,
The code sample in ibv_get_cq_event is missing the case where no wc is
available. Patch attached.
Regards,
Frank.
--- ibv_get_cq_event.3.org 2007-11-27 10:24:54.000000000 -0600
+++ ibv_get_cq_event.3 2007-11-27 10:26:52.000000000 -0600
@@ -115,6 +115,9 @@
return 1;
}
.PP
+ if (ne == 0)
+ return 1;
+.PP
if (wc.status != IBV_WC_SUCCESS) {
fprintf(stderr, "Completion with status 0x%x was found\en", wc.status);
return 1;
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general