From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 5E4061B838 for ; Thu, 1 Feb 2018 00:34:31 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id EA0E720B52; Wed, 31 Jan 2018 18:34:30 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 31 Jan 2018 18:34:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=YnegRobJt8CPV0PTROnN7Z3fFy fa+Lvdo4PCFDNo8lQ=; b=OtwdmbPek4EMDz91rEBfdHvVzjNvIjeLnC29QmJe3f +vdyHI77ehROMTtS3jogocUcFnzK1wzVtCGmhnLh619N+t8uAdMYiRNPmxEu9SAE Ecs7HH6tEr9m8bVf1l7qOl0K3lbHxiRQ7iYaaGAB93a9LnUa4XJW9mo05dnteccB Q= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=YnegRo bJt8CPV0PTROnN7Z3fFyfa+Lvdo4PCFDNo8lQ=; b=q08JkKcFbBGnpYvS0t1OKL /2jHyOY7CU3+PX6j6ErXnPO8Rx8Qvbp94TDIPTOe2LxOZAXIZQkZYRInOJRojg1h U0EIS/xgw6476UyIvsgQrhSo7HH/SntC/b/y7otleUGs6KmgNDAvc/7/iyWbS+Ot XT/zuy+yeZt7HL+N82wCj6O1Q698dakPc3RfqS/WpRdmLcVCLLvBCChHwfmx399m bvWIBdjptvQwob/l4Zv4b9tD6aUSFku5et3SKtEXmU9HytKNh3r0WMtKDTEKsKQK gVsYZ5VbjCfwD6z7gn/0m9fNgn++LHvE/2ndD7D/3bn4U3fIrN62Nfw3vEMAOihg == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 8D9BA7E4FA; Wed, 31 Jan 2018 18:34:30 -0500 (EST) From: Thomas Monjalon To: Yong Wang Cc: dev@dpdk.org, "Trahe, Fiona" Date: Thu, 01 Feb 2018 00:33:41 +0100 Message-ID: <5801381.qQ5GPbfyJT@xps> In-Reply-To: <348A99DA5F5B7549AA880327E580B435893008D3@IRSMSX101.ger.corp.intel.com> References: <1516863184-4713-1-git-send-email-wang.yong19@zte.com.cn> <348A99DA5F5B7549AA880327E580B435893008D3@IRSMSX101.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v4] crypto/qat: add null point check and fix mem leak 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: Wed, 31 Jan 2018 23:34:31 -0000 > > There are several func calls to rte_zmalloc() which don't do null > > point check on the return value. And before return, the memory is not > > freed. Fix it by adding null point check and rte_free(). > > > > Fixes: 1703e94ac5ce ("qat: add driver for QuickAssist devices") > > Fixes: e09231eaa2af ("crypto/qat: add SGL capability") > > > > Signed-off-by: Yong Wang > Acked-by: Fiona Trahe Applied, thanks