Ed Swierk 88e7df0b7e 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 <eswierk@aristanetworks.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2008-11-03 14:41:16 -08:00
..
2008-10-23 19:48:29 -07:00
2008-10-20 11:01:52 -07:00
2005-10-18 08:26:15 -07:00
2008-10-20 10:53:51 -07:00
2008-10-16 16:53:15 +02:00
2008-10-15 14:24:08 +02:00
2008-10-15 14:24:08 +02:00
2006-12-01 14:36:56 -08:00
2008-10-25 04:07:14 -04:00
2008-11-03 14:32:46 -08:00
2008-10-22 16:42:35 -07:00
2008-06-25 16:05:13 -07:00