summary refs log tree commit diff stats
path: root/hw/usb/dev-storage.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2018-07-19 15:02:00 +0200
committerPeter Maydell <peter.maydell@linaro.org>2018-08-06 19:07:21 +0100
commit09d98b69804cfd9eccadb97951e8df64ada3bc7a (patch)
tree69690a7393ffb050644cd79e2bb2e21181d80999 /hw/usb/dev-storage.c
parent341823c172168a6d2765937aaea635f5136c5aa9 (diff)
downloadfocaccia-qemu-09d98b69804cfd9eccadb97951e8df64ada3bc7a.tar.gz
focaccia-qemu-09d98b69804cfd9eccadb97951e8df64ada3bc7a.zip
target/xtensa/cpu: Set owner of memory region in xtensa_cpu_initfn
The instance_init function of the xtensa CPUs creates a memory region,
but does not set an owner, so the memory region is not destroyed
correctly when the CPU object is removed. This can happen when
introspecting the CPU devices, so introspecting the CPU device will
leave a dangling memory region object in the QOM tree. Make sure to
set the right owner here to fix this issue.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Message-id: 1532005320-17794-1-git-send-email-thuth@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/usb/dev-storage.c')
0 files changed, 0 insertions, 0 deletions