Home Home > GIT Browse > SLE12-SP3-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2019-05-14 11:17:24 +0200
committerOliver Neukum <oneukum@suse.com>2019-05-14 11:17:24 +0200
commitf5b04afb131456ef831e18ab83cf517b12385233 (patch)
treee6ca402bb27b64495cfff093df1e52798f6da72e
parent43e7db4fbb40c2659b66c9386ef3d67a33134c11 (diff)
PCI: xilinx-nwl: Add missing of_node_put() (bsc#1100132).
-rw-r--r--patches.fixes/0001-PCI-xilinx-nwl-Add-missing-of_node_put.patch33
-rw-r--r--series.conf1
2 files changed, 34 insertions, 0 deletions
diff --git a/patches.fixes/0001-PCI-xilinx-nwl-Add-missing-of_node_put.patch b/patches.fixes/0001-PCI-xilinx-nwl-Add-missing-of_node_put.patch
new file mode 100644
index 0000000000..ca7a4bbf1f
--- /dev/null
+++ b/patches.fixes/0001-PCI-xilinx-nwl-Add-missing-of_node_put.patch
@@ -0,0 +1,33 @@
+From 342639d996f18bc0a4db2f42a84230c0a966dc94 Mon Sep 17 00:00:00 2001
+From: Nicholas Mc Guire <hofrat@osadl.org>
+Date: Fri, 29 Jun 2018 13:50:10 -0500
+Subject: [PATCH] PCI: xilinx-nwl: Add missing of_node_put()
+Git-commit: 342639d996f18bc0a4db2f42a84230c0a966dc94
+Patch-mainline: v4.18
+References: bsc#1100132
+
+The call to of_get_next_child() returns a node pointer with
+refcount incremented thus it must be explicitly decremented
+here after the last usage.
+
+Fixes: ab597d35ef11 ("PCI: xilinx-nwl: Add support for Xilinx NWL PCIe Host Controller")
+Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
+[lorenzo.pieralisi@arm.com: updated commit log]
+Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
+Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
+Signed-off-by: Oliver Neukum <oneukum@suse.com>
+---
+ drivers/pci/host/pcie-xilinx-nwl.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/pci/host/pcie-xilinx-nwl.c
++++ b/drivers/pci/host/pcie-xilinx-nwl.c
+@@ -532,7 +532,7 @@ static int nwl_pcie_init_irq_domain(stru
+ INTX_NUM,
+ &legacy_domain_ops,
+ pcie);
+-
++ of_node_put(legacy_intc_node);
+ if (!pcie->legacy_irq_domain) {
+ dev_err(pcie->dev, "failed to create IRQ domain\n");
+ return -ENOMEM;
diff --git a/series.conf b/series.conf
index 6d3c089ba3..0543e64657 100644
--- a/series.conf
+++ b/series.conf
@@ -24641,6 +24641,7 @@
patches.fixes/cifs-Fix-use-after-free-of-a-mid_q_entry.patch
patches.fixes/0001-cifs-Fix-stack-out-of-bounds-in-smb-2-3-_create_leas.patch
patches.fixes/0007-pci-xilinx-add-missing-of_node_put
+ patches.fixes/0001-PCI-xilinx-nwl-Add-missing-of_node_put.patch
patches.suse/sched-fair-Fix-bandwidth-timer-clock-drift-condition.patch
patches.drivers/0004-mmc-dw_mmc-fix-card-threshold-control-configuration.patch
patches.fixes/acpi-nfit-fix-cmd_rc-for-acpi_nfit_ctl-to-always-return-a-value.patch