crypto/qat: free cookie pool on queue creation error
Signed-off-by: Fiona Trahe <fiona.trahe@intel.com> Signed-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>
This commit is contained in:
parent
32c5d96a90
commit
aa752f0638
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user