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

Tom Rini trini at konsulko.com
Mon Jan 18 23:55:58 CET 2016


On Mon, Jan 18, 2016 at 09:51:42PM +0000, Tom Warren wrote:

> This patch causes a warning for every Tegra board:
> 
> drivers/pci/pci_rom.c: In function 'dm_pci_run_vga_bios':
> drivers/pci/pci_rom.c:353:7: warning: 'ram' may be used uninitialized in this function [-Wuninitialized]
>    free(ram);
>    ^
> 
> I'm running MAKEALL -s tegra (haven't switched over to buildman yet) against current TOT u-boot-tegra/next and /master.

I'll take my patch for this (And some other warnings I saw) tomorrow.

-- 
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/20160118/2fb41346/attachment.sig>


More information about the U-Boot mailing list