summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-15 12:23:22 (GMT)
committerTom Rini <trini@konsulko.com>2016-01-15 13:09:44 (GMT)
commitd830b1520a720a19e4bbaa3d928e85115429c132 (patch)
tree99a5f27167409762e4ad976a8482bb0adee778f6 /common
parentf19345b51c98bb2bdd54e0275a7a223e91dbd6bb (diff)
downloadu-boot-fsl-qoriq-d830b1520a720a19e4bbaa3d928e85115429c132.tar.xz
dm: pci: Avoid a memory leak when allocating the ROM
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@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions