Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1211359 authored by Amrani, Ram's avatar Amrani, Ram Committed by Doug Ledford
Browse files

qedr: return error if destroy CQ failed

parent c7eb3bce
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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);
	}