diff options
author | Ed Swierk <eswierk@aristanetworks.com> | 2008-11-03 14:41:16 -0800 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-11-03 14:41:16 -0800 |
commit | 88e7df0b7ee717f9db3333fb1248827bbdb2d4d3 (patch) | |
tree | c24dbb487be7f59869438974884f1aa86c48af19 /Documentation/stallion.txt | |
parent | f5dafca52d366ef8c6c86cbdfecc71a9a78b63a6 (diff) | |
download | blackbird-op-linux-88e7df0b7ee717f9db3333fb1248827bbdb2d4d3.tar.gz blackbird-op-linux-88e7df0b7ee717f9db3333fb1248827bbdb2d4d3.zip |
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>
Diffstat (limited to 'Documentation/stallion.txt')
0 files changed, 0 insertions, 0 deletions