[3.5.y.z extended stable] Patch "PCI: fix truncation of resource size to 32 bits" has been added to staging queue
Luis Henriques
luis.henriques at canonical.com
Mon Oct 28 11:00:23 UTC 2013
This is a note to let you know that I have just added a patch titled
PCI: fix truncation of resource size to 32 bits
to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree
which can be found at:
http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.5.y-queue
If you, or anyone else, feels it should not be added to this tree, please
reply to this email.
For more information about the 3.5.y.z tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable
Thanks.
-Luis
------
>From 3e23299641a557af5d75a5cd522c7997fb987389 Mon Sep 17 00:00:00 2001
From: Nikhil P Rao <nikhil.rao at intel.com>
Date: Wed, 20 Jun 2012 12:56:00 -0700
Subject: [PATCH] PCI: fix truncation of resource size to 32 bits
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 <nikhil.rao at intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas at google.com>
Cc: Jiri Slaby <jslaby at suse.cz>
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
---
drivers/pci/setup-res.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/pci/setup-res.c b/drivers/pci/setup-res.c
index eea85da..be76eba 100644
--- a/drivers/pci/setup-res.c
+++ b/drivers/pci/setup-res.c
@@ -206,7 +206,8 @@ static int pci_revert_fw_address(struct resource *res, struct pci_dev *dev,
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;
--
1.8.3.2
More information about the kernel-team
mailing list