aboutsummaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2017-01-04 16:05:25 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2017-01-24 23:26:53 +0300
commit9ed2690354e65a87b830f197cac0138e842f989e (patch)
treec068465296cef233a26e14a4c8dfe19a478dd967 /tcg
parentece9086eb5e3f05e6a3ebb2ec3242932c3b37963 (diff)
downloadqemu-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