Re: [PATCH v10 13/18] powerpc/pci: Delay populating pdn

2016-06-22 Thread Gavin Shan
On Thu, Jun 23, 2016 at 10:59:57AM +1000, Daniel Axtens wrote: >Hi, > >mpe merged this to his next yesterday, and my nightly scripts picked up >the following cppcheck warning: > >[arch/powerpc/kernel/pci_dn.c:486]: (error) Memory leak: pdn > >That goes to the following function: > >static void

Re: [PATCH v10 13/18] powerpc/pci: Delay populating pdn

2016-06-22 Thread Daniel Axtens
Hi, mpe merged this to his next yesterday, and my nightly scripts picked up the following cppcheck warning: [arch/powerpc/kernel/pci_dn.c:486]: (error) Memory leak: pdn That goes to the following function: static void *add_pdn(struct device_node *dn, void *data) { struct pci_controller

[PATCH v10 13/18] powerpc/pci: Delay populating pdn

2016-05-20 Thread Gavin Shan
The pdn (struct pci_dn) instances are allocated from memblock or bootmem when creating PCI controller (hoses) in setup_arch(). PCI hotplug, which will be supported by proceeding patches, releases PCI device nodes and their corresponding pdn on unplugging event. The memory chunks for pdn instances