]> xenbits.xensource.com Git - libvirt.git/commit
qemuDomainDetachShmemDevice: Don't release shmem address twice
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 23 May 2018 16:19:16 +0000 (18:19 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 28 May 2018 11:08:44 +0000 (13:08 +0200)
commitc2fa7e7ffc36e37f96cfaa6b0ec4d689606925c7
tree028d98a568293bb9a52e74495135bcccc795f63d
parentaac088d998b29446b8c9adadb167d70ad6f4bad2
qemuDomainDetachShmemDevice: Don't release shmem address twice

On shmem unplug, when qemu doesn't support DEVICE_DELETED event
(or couple of other reasons) we do two things:

1) release shmem device address,
2) call qemuDomainRemoveShmemDevice() which does 1) again.

This is potentially dangerous.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_hotplug.c