From: Tom Rini Date: Fri, 15 Jan 2016 08:10:38 -0500 Subject: [U-Boot] [U-Boot, 2/3] dm: pci: Avoid a memory leak when allocating the ROM In-Reply-To: <1452860603-10471-2-git-send-email-sjg@chromium.org> References: <1452860603-10471-2-git-send-email-sjg@chromium.org> Message-ID: <20160115131038.GN3359@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Jan 15, 2016 at 05:23:22AM -0700, Simon Glass wrote: > Adjust pci_rom_load() to return an indication of whether it allocated > memory or not. Adjust the caller to free it. This fixes a memory leak > when PCI_VGA_RAM_IMAGE_START is not used. > > Reported-by: Coverity (CID: 134194) > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: