From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3] raw/ifpga: fix memory leak Date: Fri, 18 Jan 2019 20:00:18 +0100 Message-ID: <5819993.G6s9tUsmBj@xps> References: <1547795784-340613-1-git-send-email-andy.pei@intel.com> <20190118111434.45392-1-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Rosen Xu , Tianfei zhang , stable@dpdk.org To: Ferruh Yigit , Andy Pei Return-path: In-Reply-To: <20190118111434.45392-1-ferruh.yigit@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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