diff options
author | Simon Glass <sjg@chromium.org> | 2016-01-15 05:23:22 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-01-15 08:09:44 -0500 |
commit | d830b1520a720a19e4bbaa3d928e85115429c132 (patch) | |
tree | 99a5f27167409762e4ad976a8482bb0adee778f6 /dts | |
parent | f19345b51c98bb2bdd54e0275a7a223e91dbd6bb (diff) |
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 'dts')
0 files changed, 0 insertions, 0 deletions