Paolo Bonzini 9ed2690354 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>
2017-01-24 23:26:53 +03:00
..
2016-10-04 13:28:07 +01:00
2017-01-20 14:05:44 +00:00
2016-10-24 15:46:10 +02:00
2017-01-24 23:26:52 +03:00
2016-06-17 16:33:48 +10:00
2017-01-24 23:26:52 +03:00
2017-01-20 11:15:06 +00:00
2017-01-24 23:26:53 +03:00
2017-01-10 14:52:34 +00:00
2017-01-20 16:42:07 +00:00
2016-05-18 15:04:27 +03:00
2016-10-24 15:27:20 +02:00
2017-01-18 22:59:53 +02:00
2017-01-19 22:07:46 +01:00
2017-01-24 23:26:52 +03:00
2017-01-24 23:26:53 +03:00
2016-01-29 15:07:25 +00:00
2017-01-24 23:26:52 +03:00
2017-01-24 23:26:52 +03:00
2016-09-22 18:13:08 +01:00
2017-01-20 16:42:07 +00:00
2016-10-28 18:17:24 +03:00
2016-09-15 15:32:22 +03:00
2017-01-24 23:26:52 +03:00
2017-01-24 23:26:52 +03:00
2017-01-24 23:26:52 +03:00
2016-10-24 15:27:20 +02:00