qemu-cr16/hw/core
Fiona Ebner eef2dd03f9 hw/core/qdev-properties-system: Add missing return in set_drive_helper()
Currently, changing the 'drive' property of e.g. a scsi-hd object will
result in an assertion failure if the aio context of the block node
it's replaced with doesn't match the current aio context:

> bdrv_replace_child_noperm: Assertion `bdrv_get_aio_context(old_bs) ==
> bdrv_get_aio_context(new_bs)' failed.

The problematic scenario is already detected, but a 'return' statement
was missing.

Cc: qemu-stable@nongnu.org
Fixes: d1a58c176a ("qdev: allow setting drive property for realized device")
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Message-ID: <20250523070211.280498-1-f.ebner@proxmox.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2025-06-04 18:16:34 +02:00
..
bus.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
clock-vmstate.c
clock.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
cpu-common.c hw/core/cpu-common: Don't init gdbstub until cpu_exec_realizefn() 2025-05-14 14:29:45 +01:00
cpu-system.c exec: Rename target_words_bigendian() -> target_big_endian() 2025-04-25 17:00:42 +02:00
cpu-user.c cpus: Remove CPUClass::has_work() handler 2025-03-09 17:00:47 +01:00
eif.c
eif.h
fw-path-provider.c
generic-loader.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
gpio.c
guest-loader.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
guest-loader.h
hotplug.c
irq.c
Kconfig
loader-fit.c include/system: Move exec/memory.h to system/memory.h 2025-04-23 14:08:21 -07:00
loader.c hw/nvram/fw_cfg: Remove legacy FW_CFG_ORDER_OVERRIDE 2025-05-30 09:52:08 +02:00
machine-hmp-cmds.c
machine-qmp-cmds.c qemu: Convert target_name() to TargetInfo API 2025-04-25 17:09:58 +02:00
machine-smp.c
machine.c hw/core/machine: Remove hw_compat_2_5[] array 2025-05-30 09:52:08 +02:00
meson.build meson: remove lib{system, user}_ss aliases 2025-05-26 17:31:06 +02:00
nmi.c
null-machine.c include/system: Move exec/address-spaces.h to system/address-spaces.h 2025-04-23 14:08:21 -07:00
numa.c
or-irq.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
platform-bus.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
ptimer.c include/exec: Split out icount.h 2025-04-23 14:08:44 -07:00
qdev-clock.c
qdev-fw.c
qdev-hotplug.c
qdev-prop-internal.h
qdev-properties-system.c hw/core/qdev-properties-system: Add missing return in set_drive_helper() 2025-06-04 18:16:34 +02:00
qdev-properties.c qdev, rust/hpet: fix type of HPET "timers" property 2025-03-20 12:14:45 +01:00
qdev-user.c
qdev.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
register.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
reset.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
resetcontainer.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
resettable.c
split-irq.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
stream.c
sysbus-fdt.c vfio: Introduce new files for VFIORegion definitions and declarations 2025-04-25 09:01:37 +02:00
sysbus.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
trace-events
trace.h
uboot_image.h
vm-change-state-handler.c system/runstate: add VM state change cb with return value 2025-05-14 05:39:14 -04:00
vmstate-if.c