hw/i386/multiboot.c: Don't use load_image()
commit5250b09e57d9989efc69353d18416aedde00995e
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 14 Dec 2018 13:30:51 +0000 (14 13:30 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 14 Dec 2018 13:30:51 +0000 (14 13:30 +0000)
treeed80e0ffac3d47a68156e906ce16ca544efdc768
parentc24323dd5f04d2a8c89f1d0d8daf0322b6fa6fc7
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
hw/i386/multiboot.c