diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-05-12 17:54:14 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-05-12 17:54:14 +0200 |
commit | 3f1705d7770d6ff42f369ff7856fb047c8b78e42 (patch) | |
tree | 0ea8bec363bceb3d1f237afb771b9906ba98f34a /target/linux/bcm53xx/patches-4.1/031-0002-PCI-iproc-Free-resource-list-after-registration.patch | |
parent | b9c6361d5f6f47149c99b02c2c00e91e0729aec9 (diff) | |
download | master-31e0f0ae-3f1705d7770d6ff42f369ff7856fb047c8b78e42.tar.gz master-31e0f0ae-3f1705d7770d6ff42f369ff7856fb047c8b78e42.tar.bz2 master-31e0f0ae-3f1705d7770d6ff42f369ff7856fb047c8b78e42.zip |
bcm53xx: delete old kernel versions
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/bcm53xx/patches-4.1/031-0002-PCI-iproc-Free-resource-list-after-registration.patch')
-rw-r--r-- | target/linux/bcm53xx/patches-4.1/031-0002-PCI-iproc-Free-resource-list-after-registration.patch | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/target/linux/bcm53xx/patches-4.1/031-0002-PCI-iproc-Free-resource-list-after-registration.patch b/target/linux/bcm53xx/patches-4.1/031-0002-PCI-iproc-Free-resource-list-after-registration.patch deleted file mode 100644 index bbd3164eb2..0000000000 --- a/target/linux/bcm53xx/patches-4.1/031-0002-PCI-iproc-Free-resource-list-after-registration.patch +++ /dev/null @@ -1,57 +0,0 @@ -From ef07991a95de76b07594448c3521361831ec2cfe Mon Sep 17 00:00:00 2001 -From: Hauke Mehrtens <hauke@hauke-m.de> -Date: Sun, 24 May 2015 22:37:03 +0200 -Subject: [PATCH 2/2] PCI: iproc: Free resource list after registration - -The resource list is only used in the setup process and was never freed. -pci_add_resource() allocates a memory area to store the list item. - -Fix the memory leak. - -Tested-by: Ray Jui <rjui@broadcom.com> -Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> -Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> -Reviewed-by: Ray Jui <rjui@broadcom.com> ---- - drivers/pci/host/pcie-iproc-bcma.c | 8 ++++---- - drivers/pci/host/pcie-iproc-platform.c | 8 ++++---- - 2 files changed, 8 insertions(+), 8 deletions(-) - ---- a/drivers/pci/host/pcie-iproc-bcma.c -+++ b/drivers/pci/host/pcie-iproc-bcma.c -@@ -65,12 +65,12 @@ static int iproc_pcie_bcma_probe(struct - pcie->map_irq = iproc_pcie_bcma_map_irq; - - ret = iproc_pcie_setup(pcie, &res); -- if (ret) { -+ if (ret) - dev_err(pcie->dev, "PCIe controller setup failed\n"); -- return ret; -- } - -- return 0; -+ pci_free_resource_list(&res); -+ -+ return ret; - } - - static void iproc_pcie_bcma_remove(struct bcma_device *bdev) ---- a/drivers/pci/host/pcie-iproc-platform.c -+++ b/drivers/pci/host/pcie-iproc-platform.c -@@ -72,12 +72,12 @@ static int iproc_pcie_pltfm_probe(struct - pcie->map_irq = of_irq_parse_and_map_pci; - - ret = iproc_pcie_setup(pcie, &res); -- if (ret) { -+ if (ret) - dev_err(pcie->dev, "PCIe controller setup failed\n"); -- return ret; -- } - -- return 0; -+ pci_free_resource_list(&res); -+ -+ return ret; - } - - static int iproc_pcie_pltfm_remove(struct platform_device *pdev) |