commit | 9ed2690354e65a87b830f197cac0138e842f989e | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Wed Jan 04 16:05:25 2017 +0100 |
committer | Michael Tokarev <mjt@tls.msk.ru> | Tue Jan 24 23:26:53 2017 +0300 |
tree | c068465296cef233a26e14a4c8dfe19a478dd967 | |
parent | ece9086eb5e3f05e6a3ebb2ec3242932c3b37963 [diff] |
pci-assign: avoid pointless stat Just check the errno value after fopen and follow it with fstat. This shuts up Coverity's complaint about TOC/TOU violation. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>