diff options
Diffstat (limited to 'arch/x86/pci/i386.c')
-rw-r--r-- | arch/x86/pci/i386.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/pci/i386.c b/arch/x86/pci/i386.c index 5281e343dd9f..2aafb67dc5f1 100644 --- a/arch/x86/pci/i386.c +++ b/arch/x86/pci/i386.c | |||
@@ -334,9 +334,9 @@ int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, | |||
334 | flags = new_flags; | 334 | flags = new_flags; |
335 | } | 335 | } |
336 | 336 | ||
337 | if (((vma->vm_pgoff <= max_low_pfn_mapped) || | 337 | if (((vma->vm_pgoff < max_low_pfn_mapped) || |
338 | (vma->vm_pgoff >= (1UL<<(32 - PAGE_SHIFT)) && | 338 | (vma->vm_pgoff >= (1UL<<(32 - PAGE_SHIFT)) && |
339 | vma->vm_pgoff <= max_pfn_mapped)) && | 339 | vma->vm_pgoff < max_pfn_mapped)) && |
340 | ioremap_change_attr((unsigned long)__va(addr), len, flags)) { | 340 | ioremap_change_attr((unsigned long)__va(addr), len, flags)) { |
341 | free_memtype(addr, addr + len); | 341 | free_memtype(addr, addr + len); |
342 | return -EINVAL; | 342 | return -EINVAL; |