numam-dpdk/drivers/bus
Stephen Hemminger c530aa78e3 bus/pci: fix TOCTOU for sysfs access
Using access followed by open causes a static analysis warning
about Time of check versus Time of use. Also, access() and
open() have different UID permission checks.

This is not a serious problem; but easy to fix by using errno instead.

Coverity issue: 300870
Fixes: 4a928ef9f6 ("bus/pci: enable write combining during mapping")
Cc: stable@dpdk.org

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: David Marchand <david.marchand@redhat.com>
2019-06-14 16:33:56 +09:00
..
dpaa drivers/bus: use lcore accessors 2019-06-03 12:30:04 +02:00
fslmc drivers/bus: use lcore accessors 2019-06-03 12:30:04 +02:00
ifpga bus/ifpga: support AFU device search by name 2019-04-19 14:51:54 +02:00
pci bus/pci: fix TOCTOU for sysfs access 2019-06-14 16:33:56 +09:00
vdev ipc: handle unsupported IPC in action register 2019-06-05 11:27:36 +02:00
vmbus bus/vmbus: fix resource leak on error 2019-04-22 14:39:17 +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