From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 733F528FD; Fri, 18 Jan 2019 20:00:21 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 00FAB29043; Fri, 18 Jan 2019 14:00:21 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 18 Jan 2019 14:00:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=qstEqReI5td7gPCvARk3eEv59vB8+hwc/OSuRmpBCeA=; b=oyiWz7ryJYgz TURztd1L99UFJ43amy6dhkqtfCecKycQ+TOTIdtLuh4jim8ZCy9dU/WDKQQLKbO9 b4d3DuUNAIaUqyVs93O1DoLC01QUZyyTTYjUYcBfReUvOsGXptHn+kmxq6fCRCOg pL/T+fuM27KgLXZhd1w+IjvK8yZRq3M= 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=qstEqReI5td7gPCvARk3eEv59vB8+hwc/OSuRmpBC eA=; b=CAzPfbGarq9LmtjlR66ZBIE4yGd9IMzN3ObaUr4HOs9vSgmFXDQ1eFHU4 4jK9JHa+NTWmrIkPm/i0aTh3OV+/dI2OzH5KFdwDpTljkZOrHltz9vNmThvZlLBr wZpg3MuU4Loub/pRwVVIAjhLX5RlUDpwBtCzCWL5W6qCyvvQg1//X6RcoTXQiQ0d fdw9zDDHqHaIh6aRyV6UdecAXGG/LTumVCwcBCuh30B2qA4Ct/5lw6d+im9W79b8 CZbOXxh2ShZ/4xGqgD8EAP+C2cqVAm2U34cJi0VdfH9+YLn8OyKx4IN6K3KgPdA/ bqYRkD0Jh2qu2kuECmzequAi5mTsg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrhedtgdduvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkjg hfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcu oehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkphepjeejrddufeegrddvtd efrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl ohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id CC7FBE4559; Fri, 18 Jan 2019 14:00:19 -0500 (EST) From: Thomas Monjalon To: Ferruh Yigit , Andy Pei Cc: dev@dpdk.org, Rosen Xu , Tianfei zhang , stable@dpdk.org Date: Fri, 18 Jan 2019 20:00:18 +0100 Message-ID: <5819993.G6s9tUsmBj@xps> In-Reply-To: <20190118111434.45392-1-ferruh.yigit@intel.com> References: <1547795784-340613-1-git-send-email-andy.pei@intel.com> <20190118111434.45392-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v3] raw/ifpga: fix memory 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: Fri, 18 Jan 2019 19:00:21 -0000 18/01/2019 12:14, Ferruh Yigit: > From: Andy Pei > > When ifpga_rawdev_create() allocate memory for a new rawdev, > the original code allocate redundant memory for adapter, > which is a member of the rawdev. What is actually necessary is > the adapter to be initialized, not memory allocated. > > Fixes: ef1e8ede3da5 ("raw/ifpga: add Intel FPGA bus rawdev driver") > Cc: stable@dpdk.org > > Signed-off-by: Andy Pei > Acked-by: Tianfei zhang > Acked-by: Rosen Xu Applied, thanks