devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Fix memory leak in of_pci_get_host_bridge_resources
@ 2017-03-24  1:50 Jeffy Chen
  2017-03-24  1:50 ` [PATCH v3 2/2] of/pci: " Jeffy Chen
  0 siblings, 1 reply; 2+ messages in thread
From: Jeffy Chen @ 2017-03-24  1:50 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 v3:
Add some comments.

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 | 68 ++++++++++++++++++++++++++++-------------------------
 drivers/pci/bus.c   | 13 ++++++----
 include/linux/pci.h |  8 ++++---
 3 files changed, 49 insertions(+), 40 deletions(-)

-- 
2.1.4

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

end of thread, other threads:[~2017-03-24  1:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-24  1:50 [PATCH v3 0/2] Fix memory leak in of_pci_get_host_bridge_resources Jeffy Chen
2017-03-24  1:50 ` [PATCH v3 2/2] of/pci: " Jeffy Chen

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).