aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/pci-gart.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/kernel/pci-gart.c')
-rw-r--r--arch/x86_64/kernel/pci-gart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/pci-gart.c b/arch/x86_64/kernel/pci-gart.c
index 373ef66ca1dc..ae091cdc1a4d 100644
--- a/arch/x86_64/kernel/pci-gart.c
+++ b/arch/x86_64/kernel/pci-gart.c
@@ -476,7 +476,7 @@ static __init unsigned read_aperture(struct pci_dev *dev, u32 *size)
476 aper_base <<= 25; 476 aper_base <<= 25;
477 477
478 aper_size = (32 * 1024 * 1024) << aper_order; 478 aper_size = (32 * 1024 * 1024) << aper_order;
479 if (aper_base + aper_size >= 0xffffffff || !aper_size) 479 if (aper_base + aper_size > 0x100000000UL || !aper_size)
480 aper_base = 0; 480 aper_base = 0;
481 481
482 *size = aper_size; 482 *size = aper_size;