From: Akhil Goyal Date: Wed, 12 Jul 2017 12:34:41 +0000 (+0530) Subject: crypto/dpaa2_sec: fix free usage for dpsec X-Git-Tag: spdx-start~2411 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=cfd829387ff8154ec4321f863370371599fc90f1;p=dpdk.git 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 --- 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; }