numam-dpdk/drivers/bus
Stephen Hemminger 2e8d5cf763 bus/pci: fix Intel IOMMU sysfs access check
Just open the sysfs file and handle failure, rather than using access().
This eliminates Coverity warnings about TOCTOU
"time of check versus time of use"; although for this sysfs file that is
not really an issue anyway.

Coverity issue: 347276
Fixes: 54a328f552 ("bus/pci: forbid IOVA mode if IOMMU address width too small")
Cc: stable@dpdk.org

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: David Marchand <david.marchand@redhat.com>
2019-10-09 10:22:45 +02:00
..
dpaa bus/dpaa: decrease log level in parsing 2019-07-22 16:09:45 +02:00
fslmc remove useless include of EAL memory config header 2019-10-09 10:22:24 +02:00
ifpga bus/ifpga: support AFU device search by name 2019-04-19 14:51:54 +02:00
pci bus/pci: fix Intel IOMMU sysfs access check 2019-10-09 10:22:45 +02:00
vdev doc: add vdev doxygen 2019-07-08 21:57:05 +02:00
vmbus remove useless include of EAL memory config header 2019-10-09 10:22:24 +02:00
Makefile bus/vmbus: add Hyper-V virtual bus support 2018-07-13 23:48:07 +02:00
meson.build bus/vmbus: add Hyper-V virtual bus support 2018-07-13 23:48:07 +02:00