]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix up 4.14 and 4.9 patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Aug 2018 11:55:26 +0000 (13:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Aug 2018 11:55:26 +0000 (13:55 +0200)
queue-4.14/pci-of-fix-i-o-space-page-leak.patch
queue-4.14/series
queue-4.9/pci-of-fix-i-o-space-page-leak.patch
queue-4.9/series

index 46746b1da728557f09c6ee8eab9ae3dea348cad5..2132eb98f1bda44ae1758c18bf15440138ead37d 100644 (file)
@@ -69,14 +69,25 @@ Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
 Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
 Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
 Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
-[Backport just for the new api which other patches need - gregkh]
 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
 ---
- drivers/pci/pci.c   |   38 ++++++++++++++++++++++++++++++++++++++
- include/linux/pci.h |    2 ++
- 2 files changed, 40 insertions(+)
+ drivers/pci/host/pci-host-common.c |    2 -
+ drivers/pci/pci.c                  |   38 +++++++++++++++++++++++++++++++++++++
+ include/linux/pci.h                |    2 +
+ 3 files changed, 41 insertions(+), 1 deletion(-)
 
+--- a/drivers/pci/host/pci-host-common.c
++++ b/drivers/pci/host/pci-host-common.c
+@@ -45,7 +45,7 @@ static int gen_pci_parse_request_of_pci_
+               switch (resource_type(res)) {
+               case IORESOURCE_IO:
+-                      err = pci_remap_iospace(res, iobase);
++                      err = devm_pci_remap_iospace(dev, res, iobase);
+                       if (err) {
+                               dev_warn(dev, "error %d: failed to map resource %pR\n",
+                                        err, res);
 --- a/drivers/pci/pci.c
 +++ b/drivers/pci/pci.c
 @@ -3446,6 +3446,44 @@ void pci_unmap_iospace(struct resource *
index 0971805c5545c69256d183af9784bd164d5152d7..ce6f7202472fe229d8044696b6ee5481f5ec885a 100644 (file)
@@ -189,6 +189,7 @@ btrfs-scrub-don-t-use-inode-page-cache-in-scrub_handle_errored_block.patch
 octeon_mgmt-fix-mix-registers-configuration-on-mtu-setup.patch
 net-usb-rtl8150-demote-allmulti-message-to-dev_dbg.patch
 kvmclock-fix-tsc-calibration-for-nested-guests.patch
+pci-of-fix-i-o-space-page-leak.patch
 pci-versatile-fix-i-o-space-page-leak.patch
 net-qca_spi-avoid-packet-drop-during-initial-sync.patch
 net-qca_spi-make-sure-the-qca7000-reset-is-triggered.patch
@@ -207,7 +208,6 @@ netfilter-conntrack-dccp-treat-sync-syncack-as-invalid-if-no-prior-state.patch
 packet-refine-ring-v3-block-size-test-to-hold-one-frame.patch
 net-smc-no-shutdown-in-state-smc_listen.patch
 parisc-remove-unnecessary-barriers-from-spinlock.h.patch
-pci-of-fix-i-o-space-page-leak.patch
 pci-hotplug-don-t-leak-pci_slot-on-registration-failure.patch
 pci-skip-mps-logic-for-virtual-functions-vfs.patch
 pci-pciehp-fix-use-after-free-on-unplug.patch
index c3b18fec75f661f3d9d9e4c87ad7d816a9f85483..66deae4aff3f974679a16d297cb92829f7c4cf71 100644 (file)
@@ -69,19 +69,30 @@ Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
 Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
 Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
 Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
-[Backport just for the new api which other patches need - gregkh]
 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
 ---
- drivers/pci/pci.c   |   38 ++++++++++++++++++++++++++++++++++++++
- include/linux/pci.h |    2 ++
- 2 files changed, 40 insertions(+)
+ drivers/pci/host/pci-host-common.c |    2 -
+ drivers/pci/pci.c                  |   38 +++++++++++++++++++++++++++++++++++++
+ include/linux/pci.h                |    2 +
+ 3 files changed, 41 insertions(+), 1 deletion(-)
 
+--- a/drivers/pci/host/pci-host-common.c
++++ b/drivers/pci/host/pci-host-common.c
+@@ -45,7 +45,7 @@ static int gen_pci_parse_request_of_pci_
+               switch (resource_type(res)) {
+               case IORESOURCE_IO:
+-                      err = pci_remap_iospace(res, iobase);
++                      err = devm_pci_remap_iospace(dev, res, iobase);
+                       if (err) {
+                               dev_warn(dev, "error %d: failed to map resource %pR\n",
+                                        err, res);
 --- a/drivers/pci/pci.c
 +++ b/drivers/pci/pci.c
-@@ -3436,6 +3436,44 @@ char * __weak __init pcibios_setup(char
-       return str;
+@@ -3575,6 +3575,44 @@ int pci_try_set_mwi(struct pci_dev *dev)
  }
+ EXPORT_SYMBOL(pci_try_set_mwi);
  
 +static void devm_pci_unmap_iospace(struct device *dev, void *ptr)
 +{
@@ -122,8 +133,8 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 +EXPORT_SYMBOL(devm_pci_remap_iospace);
 +
  /**
-  * pcibios_set_master - enable PCI bus-mastering for device dev
-  * @dev: the PCI device to enable
+  * pci_clear_mwi - disables Memory-Write-Invalidate for device dev
+  * @dev: the PCI device to disable
 --- a/include/linux/pci.h
 +++ b/include/linux/pci.h
 @@ -1190,6 +1190,8 @@ int pci_register_io_range(phys_addr_t ad
index 81083464ac630cbb144ebdeeb59a5c5d05d5bd6e..62ecfadb6799715e67566a603d4d33a70b7a2991 100644 (file)
@@ -109,6 +109,7 @@ pinctrl-nsp-fix-potential-null-dereference.patch
 drm-nouveau-gem-off-by-one-bugs-in-nouveau_gem_pushbuf_reloc_apply.patch
 net-ethernet-freescale-fman-fix-cross-build-error.patch
 net-usb-rtl8150-demote-allmulti-message-to-dev_dbg.patch
+pci-of-fix-i-o-space-page-leak.patch
 pci-versatile-fix-i-o-space-page-leak.patch
 net-qca_spi-avoid-packet-drop-during-initial-sync.patch
 net-qca_spi-make-sure-the-qca7000-reset-is-triggered.patch
@@ -121,7 +122,6 @@ xfrm_user-prevent-leaking-2-bytes-of-kernel-memory.patch
 netfilter-conntrack-dccp-treat-sync-syncack-as-invalid-if-no-prior-state.patch
 packet-refine-ring-v3-block-size-test-to-hold-one-frame.patch
 parisc-remove-unnecessary-barriers-from-spinlock.h.patch
-pci-of-fix-i-o-space-page-leak.patch
 pci-hotplug-don-t-leak-pci_slot-on-registration-failure.patch
 pci-skip-mps-logic-for-virtual-functions-vfs.patch
 pci-pciehp-fix-use-after-free-on-unplug.patch