]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: check mmap range of /proc/bus/pci files too
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 24 Oct 2008 17:32:33 +0000 (10:32 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:12:20 +0000 (11:12 -0800)
commit003a00ffabd94b1ae282fbca42857338f861e047
tree677e78d73f420b69f06e839729e29c6e2a8720b5
parent8feb7c39e95f52008873a5fee7508119d374eefe
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>
drivers/pci/pci-sysfs.c
drivers/pci/pci.h
drivers/pci/proc.c