[U-Boot] [U-Boot, 2/3] dm: pci: Avoid a memory leak when allocating the ROM
Tom Rini
trini at konsulko.com
Fri Jan 15 14:10:38 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: Coverity (CID: 134194)
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Tom Rini <trini at konsulko.com>
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: <http://lists.denx.de/pipermail/u-boot/attachments/20160115/ca9e2568/attachment.sig>
More information about the U-Boot
mailing list