From: Adrien Mazarguil Date: Thu, 18 Jan 2018 13:51:39 +0000 (+0000) Subject: net/failsafe: fix invalid free X-Git-Tag: spdx-start~48 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9720e325f040dc536ef76606d2437d1653698a17;p=dpdk.git net/failsafe: fix invalid free rte_free() is not supposed to work with pointers returned by calloc(). Fixes: a0194d828100 ("net/failsafe: add flexible device definition") Cc: stable@dpdk.org Signed-off-by: Adrien Mazarguil Acked-by: Gaetan Rivet --- diff --git a/drivers/net/failsafe/failsafe_args.c b/drivers/net/failsafe/failsafe_args.c index cfc83e365d..ec63ac972d 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;