memory: keep the owner of the AddressSpace alive until do_address_space_destroy
commitac95190ea92f7625bb0065c2864321607b95c26b
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 11 Feb 2015 14:21:04 +0000 (11 15:21 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 11 Feb 2015 20:48:44 +0000 (11 21:48 +0100)
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