diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-10-24 13:32:33 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-01-07 14:12:20 -0500 |
commit | 9eff02e2042f96fb2aedd02e032eca1c5333d767 (patch) | |
tree | 677e78d73f420b69f06e839729e29c6e2a8720b5 /drivers/pci/pci-sysfs.c | |
parent | ede6f5aea054d3fb67c78857f7abdee602302043 (diff) |
PCI: check mmap range of /proc/bus/pci files too
/proc/bus/pci allows you to mmap resource ranges too, so we should probably be
checking to make sure the mapping is somewhat valid. Uses the same code as the recent sysfs mmap range checking patch from Linus.
Acked-by: David Miller <davem@davemloft.net>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pci-sysfs.c')
-rw-r--r-- | drivers/pci/pci-sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index c88485860a0a..388440e0d222 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c | |||
@@ -569,7 +569,7 @@ void pci_remove_legacy_files(struct pci_bus *b) | |||
569 | 569 | ||
570 | #ifdef HAVE_PCI_MMAP | 570 | #ifdef HAVE_PCI_MMAP |
571 | 571 | ||
572 | static int pci_mmap_fits(struct pci_dev *pdev, int resno, struct vm_area_struct *vma) | 572 | int pci_mmap_fits(struct pci_dev *pdev, int resno, struct vm_area_struct *vma) |
573 | { | 573 | { |
574 | unsigned long nr, start, size; | 574 | unsigned long nr, start, size; |
575 | 575 | ||