commit | 7548d6432ea204e79f4c7e9496e994a1f4e82175 | [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 | cec2543fb6dc4354d4db2f944338c01725da15ef [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>