aboutsummaryrefslogtreecommitdiff
path: root/event-loop-base.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2024-05-17 08:15:53 +0200
committerThomas Huth <thuth@redhat.com>2024-05-17 11:18:32 +0200
commitbebe9603fcb072dcdb7fb22005781b3582a4d701 (patch)
treef2f57ffc416dabe59475d84f7dcd67076d663228 /event-loop-base.c
parente4b6adae7aa7ab440e4dd98de3c1c532f48eda60 (diff)
downloadqemu-bebe9603fcb072dcdb7fb22005781b3582a4d701.zip
qemu-bebe9603fcb072dcdb7fb22005781b3582a4d701.tar.gz
qemu-bebe9603fcb072dcdb7fb22005781b3582a4d701.tar.bz2
hw/intc/s390_flic: Fix crash that occurs when saving the machine state
adapter_info_so_needed() treats its "opaque" parameter as a S390FLICState, but the function belongs to a VMStateDescription that is attached to a TYPE_VIRTIO_CCW_BUS device. This is currently causing a crash when the user tries to save or migrate the VM state. Fix it by using s390_get_flic() to get the correct device here instead. Reported-by: Marc Hartmayer <mhartmay@linux.ibm.com> Fixes: 9d1b0f5bf5 ("s390_flic: add migration-enabled property") Message-ID: <20240517061553.564529-1-thuth@redhat.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Tested-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'event-loop-base.c')
0 files changed, 0 insertions, 0 deletions