From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id BC5271B423 for ; Fri, 22 Dec 2017 19:01:43 +0100 (CET) Received: by mail-wm0-f67.google.com with SMTP id f206so22967352wmf.5 for ; Fri, 22 Dec 2017 10:01:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=HqFUdpC0A/5ebLj5XD80AIj7iKsuBlCUkj+jYJNJ/gE=; b=gMPFhBZjwXokfPJJlOosZTE5OUb7O7oA5Yn2XMygBEspTlNuxp4s5TUlAvXZSDNuul fLkQbMchcJXz05uO6rPt++qh3pqWc5GVqi0RCUATPOWC+aR+8m6ymh3rb6E0H3BQcEhP yZNQfLWmADx4+T9uzixtFykZBijj+ow302xSn/yEhmeTE2Ego9MWXmOt0fEPPRk1sJcE r/dgMAodnboesoiU/yArT5OBYFab6+rt6WtfNr12nJ+26OJdgyFsPqIFi4fwSh0nSij6 vGcY9478qPnp99SFmnVpHy+XyngsYMkvXUDOERpvx20BYn+0jmO0IW+YVj344UNzE3Pg ZgQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=HqFUdpC0A/5ebLj5XD80AIj7iKsuBlCUkj+jYJNJ/gE=; b=jMmAF93G2bsqS+WiryfDO0S2gMAnzX39q/H/RSwfKfxYD3eT/PIEi/QvXpBUlgoEzh AtPwqLURwa/Zt+b0QUmIklyE3DSwWx3D8Z19Qj+a4oWR0mnLf640KOPGcHk48x3c5P+0 RNlMslX4HCQcLzPW3aMRBRNTDmxqpVCljPZXyugtW9vQShPrKNNZcIWj41DOdIBTbboo 6hSAZnnkhpTWy2EHfB//e62rhEU6uPmn/yHChcQCyhSRPC3qV8QbRQwMV+ODjVCDi7t0 2q76sqM+N7L2z08u+kxN5ihkq5BLhNVH1jLQSPlcCIjvXZqjDNuu9YzTcnk5dZmOMtwA A2HQ== X-Gm-Message-State: AKGB3mLy862SLIQFWoR6s8enDkpy5e1+4y6Ub2WPPP3OouDGigelfqJC EoZgRIwd57kPSq4CSEYA/NTNZw== X-Google-Smtp-Source: ACJfBosTbWtXFvXC0FvbWyK6N0+iH+we5fpChS0GZh+Voug62qYp8xXb1KlmbWtLWLTFnodDy3ZEng== X-Received: by 10.80.225.204 with SMTP id m12mr15983154edl.216.1513965703356; Fri, 22 Dec 2017 10:01:43 -0800 (PST) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id n3sm19297660edb.46.2017.12.22.10.01.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Dec 2017 10:01:42 -0800 (PST) Date: Fri, 22 Dec 2017 19:01:30 +0100 From: Adrien Mazarguil To: Ferruh Yigit Cc: dev@dpdk.org, stable@dpdk.org, Gaetan Rivet Message-ID: <20171222173846.20731-2-adrien.mazarguil@6wind.com> References: <20171218162443.12971-1-adrien.mazarguil@6wind.com> <20171222173846.20731-1-adrien.mazarguil@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171222173846.20731-1-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH v2 1/5] net/failsafe: fix invalid free X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Dec 2017 18:01:44 -0000 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 Signed-off-by: Adrien Mazarguil --- 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