diff options
| author | Paolo Bonzini | 2017-01-04 16:05:25 +0100 |
|---|---|---|
| committer | Michael Tokarev | 2017-01-24 21:26:53 +0100 |
| commit | 9ed2690354e65a87b830f197cac0138e842f989e (patch) | |
| tree | c068465296cef233a26e14a4c8dfe19a478dd967 /include/exec/exec-all.h | |
| parent | qemu-img: remove dead check (diff) | |
| download | qemu-9ed2690354e65a87b830f197cac0138e842f989e.tar.gz qemu-9ed2690354e65a87b830f197cac0138e842f989e.tar.xz qemu-9ed2690354e65a87b830f197cac0138e842f989e.zip | |
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 'include/exec/exec-all.h')
0 files changed, 0 insertions, 0 deletions
