From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: MIME-Version: 1.0 In-Reply-To: <20170608141342.2018-8-lorenzo.pieralisi@arm.com> References: <20170608141342.2018-1-lorenzo.pieralisi@arm.com> <20170608141342.2018-8-lorenzo.pieralisi@arm.com> From: Linus Walleij Date: Fri, 16 Jun 2017 11:02:13 +0200 Message-ID: Subject: Re: [RFT PATCH v2 07/42] drivers: pci: host: ftpci100: Fix host bridge memory leakage To: Lorenzo Pieralisi List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pratyush Anand , Gabriele Paoloni , linux-pci , Shawn Lin , Will Deacon , Michal Simek , Thierry Reding , Tanmay Inamdar , Matthew Minter , Rob Herring , Joao Pinto , Wenrui Li , Russell King , Murali Karicheri , Arnd Bergmann , Bharat Kumar Gogada , Simon Horman , Bjorn Helgaas , Mingkai Hu , "linux-arm-kernel@lists.infradead.org" , Thomas Petazzoni , Jingoo Han , Stanimir Varbanov , Minghuan Lian , Zhou Wang , Roy Zang Content-Type: text/plain; charset="us-ascii" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+bjorn=helgaas.com@lists.infradead.org List-ID: On Thu, Jun 8, 2017 at 4:13 PM, Lorenzo Pieralisi wrote: > When probing the PCI host controller driver, if an error condition > is trigger the probe function code does not free memory allocated > for the struct pci_host_bridge resulting in memory leakage. > > Move the struct pci_host_bridge allocation over to the respective > devm interface to fix the issue. > > Signed-off-by: Lorenzo Pieralisi > Cc: Arnd Bergmann > Cc: Bjorn Helgaas Acked-by: Linus Walleij Yours, Linus Walleij _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel