提交 a1211359 编写于 作者: A Amrani, Ram 提交者: Doug Ledford

qedr: return error if destroy CQ failed

Signed-off-by: NRam Amrani <Ram.Amrani@cavium.com>
Reviewed-by: NMichal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 c7eb3bce
......@@ -985,8 +985,13 @@ int qedr_destroy_cq(struct ib_cq *ibcq)
/* GSIs CQs are handled by driver, so they don't exist in the FW */
if (cq->cq_type != QEDR_CQ_TYPE_GSI) {
int rc;
iparams.icid = cq->icid;
dev->ops->rdma_destroy_cq(dev->rdma_ctx, &iparams, &oparams);
rc = dev->ops->rdma_destroy_cq(dev->rdma_ctx, &iparams,
&oparams);
if (rc)
return rc;
dev->ops->common->chain_free(dev->cdev, &cq->pbl);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册