Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bus/pci: fix Intel IOMMU sysfs access check
[ upstream commit 2e8d5cf ] 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: 54a328f ("bus/pci: forbid IOVA mode if IOMMU address width too small") Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Reviewed-by: David Marchand <david.marchand@redhat.com>
- Loading branch information