From 2f2e27a8801a1d74b17cc050d87098702b668a1f Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 14 Nov 2013 17:40:28 +0900 Subject: [PATCH] 3.4-stable patches added patches: pci-fix-truncation-of-resource-size-to-32-bits.patch --- ...uncation-of-resource-size-to-32-bits.patch | 34 +++++++++++++++++++ queue-3.4/series | 1 + 2 files changed, 35 insertions(+) create mode 100644 queue-3.4/pci-fix-truncation-of-resource-size-to-32-bits.patch diff --git a/queue-3.4/pci-fix-truncation-of-resource-size-to-32-bits.patch b/queue-3.4/pci-fix-truncation-of-resource-size-to-32-bits.patch new file mode 100644 index 00000000000..4a7cbe7fa77 --- /dev/null +++ b/queue-3.4/pci-fix-truncation-of-resource-size-to-32-bits.patch @@ -0,0 +1,34 @@ +From d6776e6d5c2f8db0252f447b09736075e1bbe387 Mon Sep 17 00:00:00 2001 +From: Nikhil P Rao +Date: Wed, 20 Jun 2012 12:56:00 -0700 +Subject: PCI: fix truncation of resource size to 32 bits + +From: Nikhil P Rao + +commit d6776e6d5c2f8db0252f447b09736075e1bbe387 upstream. + +_pci_assign_resource() took an int "size" argument, which meant that +sizes larger than 4GB were truncated. Change type to resource_size_t. + +[bhelgaas: changelog] +Signed-off-by: Nikhil P Rao +Signed-off-by: Bjorn Helgaas +Cc: Jiri Slaby +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/pci/setup-res.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +--- a/drivers/pci/setup-res.c ++++ b/drivers/pci/setup-res.c +@@ -206,7 +206,8 @@ static int pci_revert_fw_address(struct + return ret; + } + +-static int _pci_assign_resource(struct pci_dev *dev, int resno, int size, resource_size_t min_align) ++static int _pci_assign_resource(struct pci_dev *dev, int resno, ++ resource_size_t size, resource_size_t min_align) + { + struct resource *res = dev->resource + resno; + struct pci_bus *bus; diff --git a/queue-3.4/series b/queue-3.4/series index 84a4995a8ba..411e3cc0cf2 100644 --- a/queue-3.4/series +++ b/queue-3.4/series @@ -1,3 +1,4 @@ cxgb3-fix-length-calculation-in-write_ofld_wr-on-32-bit-architectures.patch xen-netback-use-jiffies_64-value-to-calculate-credit-timeout.patch net-flow_dissector-fail-on-evil-iph-ihl.patch +pci-fix-truncation-of-resource-size-to-32-bits.patch -- 2.47.3