From: Greg Kroah-Hartman Date: Thu, 14 Nov 2013 08:40:28 +0000 (+0900) Subject: 3.4-stable patches X-Git-Tag: v3.4.70~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f2e27a8801a1d74b17cc050d87098702b668a1f;p=thirdparty%2Fkernel%2Fstable-queue.git 3.4-stable patches added patches: 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