All of lore.kernel.org
 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
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ 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] 13+ messages in thread

end of thread, other threads:[~2017-04-05 13:22 UTC | newest]

Thread overview: 13+ 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  8:12 ` [PATCH v2 2/2] of/pci: Fix memory leak in of_pci_get_host_bridge_resources Jeffy Chen
2017-03-23 22:07   ` Rob Herring
2017-03-23 22:58     ` Dmitry Torokhov
2017-03-24  1:39       ` jeffy
2017-03-24  1:39         ` jeffy
2017-04-04 19:18       ` Bjorn Helgaas
2017-04-04 19:18         ` Bjorn Helgaas
2017-04-05  2:22         ` jeffy
2017-04-05  2:22           ` jeffy
2017-04-05 13:21           ` Rob Herring
2017-03-23  9:00 ` [PATCH v2 0/2] " Shawn Lin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.