diff options
author | Maksim Davydov | 2022-08-25 18:52:47 +0200 |
---|---|---|
committer | Marc-André Lureau | 2022-09-29 12:38:05 +0200 |
commit | fc0c128531ed55f058bfbad4f1348ebd9a0187f2 (patch) | |
tree | 95223697bf9321195928c7e9d59b9c5f52392dcf /hw/display/vhost-user-gpu.c | |
parent | serial: Allow unaligned i/o access (diff) | |
download | qemu-fc0c128531ed55f058bfbad4f1348ebd9a0187f2.tar.gz qemu-fc0c128531ed55f058bfbad4f1348ebd9a0187f2.tar.xz qemu-fc0c128531ed55f058bfbad4f1348ebd9a0187f2.zip |
chardev: fix segfault in finalize
If finalize chardev-msmouse or chardev-wctable is called immediately after
init it cases QEMU to crash with segfault. This happens because of
QTAILQ_REMOVE in qemu_input_handler_unregister tries to dereference
NULL pointer.
For instance, this error can be reproduced via `qom-list-properties`
command.
Signed-off-by: Maksim Davydov <davydov-max@yandex-team.ru>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Message-Id: <20220825165247.33704-1-davydov-max@yandex-team.ru>
Diffstat (limited to 'hw/display/vhost-user-gpu.c')
0 files changed, 0 insertions, 0 deletions