From: Akhil Goyal <akhil.goyal@nxp.com>
To: <dev@dpdk.org>
Cc: <hemant.agrawal@nxp.com>, <pablo.de.lara.guarch@intel.com>,
<declan.doherty@intel.com>, Akhil Goyal <akhil.goyal@nxp.com>
Subject: [dpdk-dev] [PATCH] crypto/dpaa2_sec: fix the incorrect free usage for dpsec
Date: Wed, 12 Jul 2017 18:04:41 +0530 [thread overview]
Message-ID: <20170712123441.2942-3-akhil.goyal@nxp.com> (raw)
In-Reply-To: <20170712123441.2942-1-akhil.goyal@nxp.com>
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")
Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com>
---
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 d6c3088..9f2c0d9 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.9.3
next prev parent reply other threads:[~2017-07-12 12:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-12 12:34 [dpdk-dev] [PATCH] crypto/dpaa2_sec: fix typo error in comments Akhil Goyal
2017-07-12 12:34 ` [dpdk-dev] [PATCH] doc: add dpaa2-sec in test-crypto-perf Akhil Goyal
2017-07-12 12:43 ` De Lara Guarch, Pablo
2017-07-12 15:12 ` [dpdk-dev] [PATCH v2] doc: add missing devices " Akhil Goyal
2017-07-12 16:17 ` De Lara Guarch, Pablo
2017-07-13 15:50 ` De Lara Guarch, Pablo
2017-07-12 12:34 ` Akhil Goyal [this message]
2017-07-12 14:46 ` [dpdk-dev] [PATCH] crypto/dpaa2_sec: fix the incorrect free usage for dpsec De Lara Guarch, Pablo
2017-07-12 14:47 ` [dpdk-dev] [PATCH] crypto/dpaa2_sec: fix typo error in comments De Lara Guarch, Pablo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170712123441.2942-3-akhil.goyal@nxp.com \
--to=akhil.goyal@nxp.com \
--cc=declan.doherty@intel.com \
--cc=dev@dpdk.org \
--cc=hemant.agrawal@nxp.com \
--cc=pablo.de.lara.guarch@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).