]> git.proxmox.com Git - mirror_qemu.git/commit - memory.c
memory: keep the owner of the AddressSpace alive until do_address_space_destroy
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 11 Feb 2015 14:21:04 +0000 (15:21 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 11 Feb 2015 20:48:44 +0000 (21:48 +0100)
commitac95190ea92f7625bb0065c2864321607b95c26b
tree80e1901692ef514cb738a2ec048feaf914b7674d
parenta464982499b2f637f6699e3d03e0a9d2e0b5288b
memory: keep the owner of the AddressSpace alive until do_address_space_destroy

This fixes a use-after-free if do_address_space_destroy is executed
too late.

Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Tested-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
memory.c