Peter Maydell 36bde0911f hw/pci/pci.c: Don't use load_image()
The load_image() function is deprecated, as it does not let the
caller specify how large the buffer to read the file into is.
Instead use load_image_size().

While we are converting this code, add an error-check
for read failure.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20181130151712.2312-5-peter.maydell@linaro.org
2018-12-14 13:30:51 +00:00
..
2018-11-27 15:35:15 +01:00
2018-11-05 13:24:02 -05:00
2016-01-29 15:07:24 +00:00
2018-03-02 13:45:50 -06:00
2018-12-14 13:30:51 +00:00
2016-01-29 15:07:24 +00:00
2018-11-27 15:35:15 +01:00
2017-07-03 22:29:49 +03:00