diff options
author | Peter Maydell | 2018-12-14 14:30:51 +0100 |
---|---|---|
committer | Peter Maydell | 2018-12-14 14:30:51 +0100 |
commit | 5250b09e57d9989efc69353d18416aedde00995e (patch) | |
tree | ed80e0ffac3d47a68156e906ce16ca544efdc768 /hw/core/machine.c | |
parent | hw/i386/pc.c: Don't use load_image() (diff) | |
download | qemu-5250b09e57d9989efc69353d18416aedde00995e.tar.gz qemu-5250b09e57d9989efc69353d18416aedde00995e.tar.xz qemu-5250b09e57d9989efc69353d18416aedde00995e.zip |
hw/i386/multiboot.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 the code, add the missing error check.
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-7-peter.maydell@linaro.org
Diffstat (limited to 'hw/core/machine.c')
0 files changed, 0 insertions, 0 deletions