From: Ed Swierk Date: Mon, 3 Nov 2008 22:41:16 +0000 (-0800) Subject: PCI: fix range check on mmapped sysfs resource files X-Git-Tag: v2.6.28-rc4~15^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88e7df0b7ee717f9db3333fb1248827bbdb2d4d3;p=pandora-kernel.git PCI: fix range check on mmapped sysfs resource files pci_mmap_fits() returns the wrong answer if the sysfs resource file size is not a multiple of the page size. vm_end and vm_start are already page-aligned, so size - start < nr, causing mmap() to return EINVAL. Signed-off-by: Ed Swierk Signed-off-by: Andrew Morton Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed