Re: [PATCH v2 0/2] Fix memory leak in of_pci_get_host_bridge_resources

2017-03-23 Thread Shawn Lin
Hi Jeffy, On 2017/3/23 16:12, Jeffy Chen wrote: In of_pci_get_host_bridge_resources, we alloced some struct resource variables, and they would cause memory leak since no where to free them. Tested-by: Shawn Lin Changes in v2: Don't change the

Re: [PATCH v2 0/2] Fix memory leak in of_pci_get_host_bridge_resources

2017-03-23 Thread Shawn Lin
Hi Jeffy, On 2017/3/23 16:12, Jeffy Chen wrote: In of_pci_get_host_bridge_resources, we alloced some struct resource variables, and they would cause memory leak since no where to free them. Tested-by: Shawn Lin Changes in v2: Don't change the resource_list_create_entry's behavior. Jeffy

[PATCH v2 0/2] Fix memory leak in of_pci_get_host_bridge_resources

2017-03-23 Thread Jeffy Chen
In of_pci_get_host_bridge_resources, we alloced some struct resource variables, and they would cause memory leak since no where to free them. Changes in v2: Don't change the resource_list_create_entry's behavior. Jeffy Chen (2): PCI: return resource_entry in pci_add_resource helpers of/pci:

[PATCH v2 0/2] Fix memory leak in of_pci_get_host_bridge_resources

2017-03-23 Thread Jeffy Chen
In of_pci_get_host_bridge_resources, we alloced some struct resource variables, and they would cause memory leak since no where to free them. Changes in v2: Don't change the resource_list_create_entry's behavior. Jeffy Chen (2): PCI: return resource_entry in pci_add_resource helpers of/pci: