summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLi Qiang2017-02-21 09:18:27 +0100
committerPaolo Bonzini2017-03-03 16:40:03 +0100
commitf20e6f8cd42acae9a130b9e0bcd47b0d7e39f253 (patch)
treeee1f1744072b9b2ec31789c265970d137c6b3ffc /include
parentvl: disable default cdrom when using explicitely scsi-hd (diff)
downloadqemu-f20e6f8cd42acae9a130b9e0bcd47b0d7e39f253.tar.gz
qemu-f20e6f8cd42acae9a130b9e0bcd47b0d7e39f253.tar.xz
qemu-f20e6f8cd42acae9a130b9e0bcd47b0d7e39f253.zip
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 <liqiang6-s@360.cn> Message-Id: <1487665107-88004-1-git-send-email-liqiang6-s@360.cn> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Li Qiang <liq3ea@gmail.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions