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

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.
Tom
-- nvpublic

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.
participants (2)
-
Tom Rini
-
Tom Warren