From: Adrien Mazarguil <adrien.mazarguil@6wind.com>
To: Ferruh Yigit <ferruh.yigit@intel.com>
Cc: dev@dpdk.org, stable@dpdk.org, Gaetan Rivet <gaetan.rivet@6wind.com>
Subject: [dpdk-stable] [PATCH v2 1/5] net/failsafe: fix invalid free
Date: Fri, 22 Dec 2017 19:01:30 +0100 [thread overview]
Message-ID: <20171222173846.20731-2-adrien.mazarguil@6wind.com> (raw)
In-Reply-To: <20171222173846.20731-1-adrien.mazarguil@6wind.com>
rte_free() is not supposed to work with pointers returned by calloc().
Fixes: a0194d828100 ("net/failsafe: add flexible device definition")
Cc: stable@dpdk.org
Cc: Gaetan Rivet <gaetan.rivet@6wind.com>
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
---
drivers/net/failsafe/failsafe_args.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/failsafe/failsafe_args.c b/drivers/net/failsafe/failsafe_args.c
index cfc83e365..ec63ac972 100644
--- a/drivers/net/failsafe/failsafe_args.c
+++ b/drivers/net/failsafe/failsafe_args.c
@@ -407,7 +407,7 @@ failsafe_args_free(struct rte_eth_dev *dev)
uint8_t i;
FOREACH_SUBDEV(sdev, i, dev) {
- rte_free(sdev->cmdline);
+ free(sdev->cmdline);
sdev->cmdline = NULL;
free(sdev->devargs.args);
sdev->devargs.args = NULL;
--
2.11.0
next parent reply other threads:[~2017-12-22 18:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20171218162443.12971-1-adrien.mazarguil@6wind.com>
[not found] ` <20171222173846.20731-1-adrien.mazarguil@6wind.com>
2017-12-22 18:01 ` Adrien Mazarguil [this message]
[not found] ` <1515509253-17834-1-git-send-email-matan@mellanox.com>
2018-01-09 14:47 ` [dpdk-stable] [PATCH v3 1/8] " Matan Azrad
2018-01-16 10:24 ` Gaëtan Rivet
[not found] ` <1516265026-6469-1-git-send-email-matan@mellanox.com>
2018-01-18 8:43 ` [dpdk-stable] [PATCH v4 " Matan Azrad
[not found] ` <1516269709-15252-1-git-send-email-matan@mellanox.com>
2018-01-18 10:01 ` [dpdk-stable] [PATCH v5 " Matan Azrad
[not found] ` <1516283506-21198-1-git-send-email-matan@mellanox.com>
2018-01-18 13:51 ` [dpdk-stable] [PATCH v6 " Matan Azrad
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=20171222173846.20731-2-adrien.mazarguil@6wind.com \
--to=adrien.mazarguil@6wind.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=gaetan.rivet@6wind.com \
--cc=stable@dpdk.org \
/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).