[openib-general] [PATCH] mthca: Don't call CQ completion handler if it doesn't exist
Hal Rosenstock
halr at voltaire.com
Mon Apr 11 10:50:24 PDT 2005
mthca: Don't call CQ completion handler if it doesn't exist
Signed-off-by: Hal Rosenstock <halr at voltaire.com>
Index: mthca_cq.c
===================================================================
--- mthca_cq.c (revision 2154)
+++ mthca_cq.c (working copy)
@@ -206,7 +206,8 @@
++cq->arm_sn;
- cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context);
+ if (cq->ibcq.comp_handler)
+ cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context);
}
void mthca_cq_clean(struct mthca_dev *dev, u32 cqn, u32 qpn)
More information about the general
mailing list