diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2021-10-07 23:12:43 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2021-10-08 13:31:02 +0200 |
commit | 906c2323f1edf41b1851e7e36231023ee930aa3c (patch) | |
tree | 6307901670b9bbf6a600cbea702403d0c539df44 /python/qemu | |
parent | c047862acd502c305fbdc66a4a3fd717c04fa6d2 (diff) | |
download | qemu-906c2323f1edf41b1851e7e36231023ee930aa3c.zip qemu-906c2323f1edf41b1851e7e36231023ee930aa3c.tar.gz qemu-906c2323f1edf41b1851e7e36231023ee930aa3c.tar.bz2 |
macfb: fix invalid object reference in macfb_common_realize()
During realize memory_region_init_ram_nomigrate() is used to initialise the RAM
memory region used for the framebuffer but the owner object reference is
incorrect since MacFbState is a typedef and not a QOM type.
Change the memory region owner to be the corresponding DeviceState to fix the
issue and prevent random crashes during macfb_common_realize().
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fixes: 8ac919a0654 ("hw/m68k: add Nubus macfb video card")
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20211007221253.29024-4-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'python/qemu')
0 files changed, 0 insertions, 0 deletions