]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: fix truncation of resource size to 32 bits
authorNikhil P Rao <nikhil.rao@intel.com>
Wed, 20 Jun 2012 19:56:00 +0000 (12:56 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 11 Jul 2012 22:57:44 +0000 (16:57 -0600)
commitd2dca26fc78cf67e6df6250882cdd6d4b481a1b2
tree304355b34b77cd64b30a95f79b16a08d1521e17b
parent1140ece4e43893bef14a33125746b2aef4180b90
PCI: fix truncation of resource size to 32 bits

_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@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/setup-res.c