On Wed, 11 Mar 2026, Trieu Huynh wrote:
From: Trieu Huynh <[email protected]>

Check return value of load_image_targphys() and return early on
failure instead of continuing with invalid state.
- Use ret < 0 to handle negative return value.
- No functional changes.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/413
Signed-off-by: Trieu Huynh <[email protected]>
---
hw/alpha/dp264.c       |  8 ++++++--
hw/hppa/machine.c      |  7 +++++--
hw/m68k/next-cube.c    |  9 ++++++++-
hw/m68k/q800.c         |  7 +++++--
hw/m68k/virt.c         |  7 +++++--
hw/microblaze/boot.c   |  4 ++++

I don't know about these above,

hw/ppc/amigaone.c      |  9 +++++++++
hw/ppc/e500.c          | 10 ++++++++++
hw/ppc/mac_newworld.c  | 10 ++++++++++
hw/ppc/mac_oldworld.c  | 10 ++++++++++
hw/ppc/pegasos.c       |  5 +++++
hw/ppc/pnv.c           | 20 ++++++++++++++++----
hw/ppc/ppc440_bamboo.c |  4 ++++
hw/ppc/prep.c          | 10 ++++++++++
hw/ppc/sam460ex.c      |  5 +++++
hw/ppc/spapr.c         |  8 ++++++++
hw/ppc/virtex_ml507.c  |  9 +++++++++

but unless I missed something all these call it with error_fatal so the check added should never be reached therefore should not be needed.

Regards,
BALATON Zoltan

Reply via email to