cxl: Free virtual PHB when removing

Michael Ellerman mpe at ellerman.id.au
Thu Oct 15 22:10:55 AEDT 2015


On Tue, 2015-13-10 at 04:09:44 UTC, Andrew Donnellan wrote:
> 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 <dja at axtens.net>
> Signed-off-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/2e1a2556ebbbe7b53a05b721

cheers


More information about the Linuxppc-dev mailing list