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

Tom Warren TWarren at nvidia.com
Mon Jan 18 22:51:42 CET 2016


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


More information about the U-Boot mailing list