diff options
| author | Andrew Donnellan <[email protected]> | 2015-10-13 15:09:44 +1100 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2015-10-15 20:31:58 +1100 |
| commit | 2e1a2556ebbbe7b53a05b721ac0d3d8ca9873cdb (patch) | |
| tree | b1911beab1e2b0cfa0d5a3bc874acb981d2d6226 /tools/perf/scripts/python | |
| parent | 6b8b252f40d39e5815be17aaf05f2cb5eaaa41a1 (diff) | |
cxl: Free virtual PHB when removing
When adding a vPHB in cxl_pci_vphb_add(), we allocate a pci_controller
struct using pcibios_alloc_controller(). However, we don't free it in
cxl_pci_vphb_remove(), causing a leak.
Call pcibios_free_controller() in cxl_pci_vphb_remove() to free the vPHB
data structure correctly.
Signed-off-by: Daniel Axtens <[email protected]>
Signed-off-by: Andrew Donnellan <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions