From: Fiona Trahe Date: Wed, 13 Jun 2018 12:14:12 +0000 (+0200) Subject: crypto/qat: free cookie pool on queue creation error X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=aa752f0638137455d4e7f7d0491d2819ee20678d;p=dpdk.git crypto/qat: free cookie pool on queue creation error Signed-off-by: Fiona Trahe Signed-off-by: Tomasz Jozwiak --- diff --git a/drivers/crypto/qat/qat_qp.c b/drivers/crypto/qat/qat_qp.c index 9938c14932..569eace57e 100644 --- a/drivers/crypto/qat/qat_qp.c +++ b/drivers/crypto/qat/qat_qp.c @@ -248,6 +248,9 @@ int qat_qp_setup(struct qat_pci_device *qat_dev, return 0; create_err: + if (qp->op_cookie_pool) + rte_mempool_free(qp->op_cookie_pool); + rte_free(qp->op_cookies); rte_free(qp); return -EFAULT; }