[U-Boot] [PATCH 2/3] dm: pci: Avoid a memory leak when allocating the ROM

Tom Rini trini at konsulko.com
Fri Jan 15 13:32:07 CET 2016


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: Tom Rini <trini at konsulko.com>
> Signed-off-by: Simon Glass <sjg at chromium.org>

Reported-by: Coverity (CID: 134194)
Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160115/26c93883/attachment.sig>


More information about the U-Boot mailing list