commit | d830b1520a720a19e4bbaa3d928e85115429c132 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Fri Jan 15 05:23:22 2016 -0700 |
committer | Tom Rini <trini@konsulko.com> | Fri Jan 15 08:09:44 2016 -0500 |
tree | 99a5f27167409762e4ad976a8482bb0adee778f6 | |
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>