linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/1] Fix memory leak in of_pci_get_host_bridge_resources
@ 2017-04-05  2:28 Jeffy Chen
  2017-04-05  2:28 ` [PATCH v5] of/pci: " Jeffy Chen
  0 siblings, 1 reply; 4+ messages in thread
From: Jeffy Chen @ 2017-04-05  2:28 UTC (permalink / raw)
  To: linux-pci
  Cc: robh, toshi.kani, shawn.lin, briannorris, linux-kernel, dianders,
	bhelgaas, dtor, Jeffy Chen, devicetree, Rob Herring,
	Frank Rowand

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 v5:
Fix some careless compile errors.

Changes in v4:
Use IORESOURCE_AUTO to mark struct resources which could be copied.

Changes in v3:
Add some comments.

Changes in v2:
Don't change the resource_list_create_entry's behavior.

Jeffy Chen (1):
  of/pci: Fix memory leak in of_pci_get_host_bridge_resources

 drivers/of/of_pci.c | 51 ++++++++++++++++++---------------------------------
 drivers/pci/bus.c   |  7 ++++++-
 2 files changed, 24 insertions(+), 34 deletions(-)

-- 
2.1.4

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

end of thread, other threads:[~2017-05-18  5:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-05  2:28 [PATCH v5 0/1] Fix memory leak in of_pci_get_host_bridge_resources Jeffy Chen
2017-04-05  2:28 ` [PATCH v5] of/pci: " Jeffy Chen
2017-05-17 21:08   ` Bjorn Helgaas
2017-05-18  5:27     ` jeffy

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