[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1490256755-889-1-git-send-email-jeffy.chen@rock-chips.com>
Date: Thu, 23 Mar 2017 16:12:33 +0800
From: Jeffy Chen <jeffy.chen@...k-chips.com>
To: linux-kernel@...r.kernel.org
Cc: robh@...nel.org, toshi.kani@....com, shawn.lin@...k-chips.com,
briannorris@...omium.org, dianders@...omium.org,
bhelgaas@...gle.com, dtor@...omium.org,
Jeffy Chen <jeffy.chen@...k-chips.com>,
devicetree@...r.kernel.org, linux-pci@...r.kernel.org,
Frank Rowand <frowand.list@...il.com>,
Rob Herring <robh+dt@...nel.org>
Subject: [PATCH v2 0/2] Fix memory leak in of_pci_get_host_bridge_resources
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
Powered by blists - more mailing lists