From cfd829387ff8154ec4321f863370371599fc90f1 Mon Sep 17 00:00:00 2001 From: Akhil Goyal Date: Wed, 12 Jul 2017 18:04:41 +0530 Subject: [PATCH] crypto/dpaa2_sec: fix free usage for dpsec dpseci is allocated using rte_calloc() but it is freed using free(). Fixing it to use rte_free() Fixes: e5cbdfc53765 ("crypto/dpaa2_sec: add basic operations") Cc: stable@dpdk.org Signed-off-by: Akhil Goyal --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index d6c3088c48..9f2c0d9de5 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -1705,7 +1705,7 @@ dpaa2_sec_dev_close(struct rte_cryptodev *dev) /*Free the allocated memory for ethernet private data and dpseci*/ priv->hw = NULL; - free(dpseci); + rte_free(dpseci); return 0; } -- 2.20.1