]> Git Repo - qemu.git/commit
spice-char: fix segfault in char_spice_finalize
authorLi Qiang <[email protected]>
Tue, 21 Feb 2017 08:18:27 +0000 (00:18 -0800)
committerPaolo Bonzini <[email protected]>
Fri, 3 Mar 2017 15:40:03 +0000 (16:40 +0100)
commitf20e6f8cd42acae9a130b9e0bcd47b0d7e39f253
treeee1f1744072b9b2ec31789c265970d137c6b3ffc
parentf6f99b48087696812241d6c54f97444de6364c24
spice-char: fix segfault in char_spice_finalize

In 'qemu_chr_open_spice_vmc' if the 'psubtype' is NULL, it will
call 'char_spice_finalize'. But as the SpiceChardev is not inserted
in the 'spice_chars' list, the 'QLIST_REMOVE' will cause a segfault.
Add a detect to avoid it.

Signed-off-by: Li Qiang <[email protected]>
Message-Id: <1487665107[email protected]>
Reviewed-by: Marc-AndrĂ© Lureau <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Li Qiang <[email protected]>
spice-qemu-char.c
This page took 0.02323 seconds and 4 git commands to generate.