diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-01-04 16:05:25 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2017-01-24 23:26:53 +0300 |
commit | 9ed2690354e65a87b830f197cac0138e842f989e (patch) | |
tree | c068465296cef233a26e14a4c8dfe19a478dd967 /tcg | |
parent | ece9086eb5e3f05e6a3ebb2ec3242932c3b37963 (diff) | |
download | qemu-9ed2690354e65a87b830f197cac0138e842f989e.zip qemu-9ed2690354e65a87b830f197cac0138e842f989e.tar.gz qemu-9ed2690354e65a87b830f197cac0138e842f989e.tar.bz2 |
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>
Diffstat (limited to 'tcg')
0 files changed, 0 insertions, 0 deletions