linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fix memory leak in of_pci_get_host_bridge_resources
@ 2017-03-23  8:12 Jeffy Chen
  2017-03-23  8:12 ` [PATCH v2 1/2] PCI: return resource_entry in pci_add_resource helpers Jeffy Chen
  2017-03-23  9:00 ` [PATCH v2 0/2] Fix memory leak in of_pci_get_host_bridge_resources Shawn Lin
  0 siblings, 2 replies; 3+ messages in thread
From: Jeffy Chen @ 2017-03-23  8:12 UTC (permalink / raw)
  To: linux-kernel
  Cc: robh, toshi.kani, shawn.lin, briannorris, dianders, bhelgaas,
	dtor, Jeffy Chen, devicetree, linux-pci, Frank Rowand,
	Rob Herring

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: Fix memory leak in of_pci_get_host_bridge_resources

 drivers/of/of_pci.c | 57 +++++++++++++++++++++++------------------------------
 drivers/pci/bus.c   | 13 +++++++-----
 include/linux/pci.h |  8 +++++---
 3 files changed, 38 insertions(+), 40 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-23  9:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-23  8:12 [PATCH v2 0/2] Fix memory leak in of_pci_get_host_bridge_resources Jeffy Chen
2017-03-23  8:12 ` [PATCH v2 1/2] PCI: return resource_entry in pci_add_resource helpers Jeffy Chen
2017-03-23  9:00 ` [PATCH v2 0/2] Fix memory leak in of_pci_get_host_bridge_resources Shawn Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).