hw/char: Let devices own the MemoryRegion they create
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Sat, 22 Feb 2020 17:11:33 +0000 (18:11 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Mar 2020 14:18:49 +0000 (15:18 +0100)
commit41e82da57dbb6cad8ef1c9a281a9aac2265a0586
tree6081f7fb22c4f47275112038d31bed11613fa63c
parent414c47d234d6b12756d987bd93b9c8a04d009675
hw/char: Let devices own the MemoryRegion they create

Avoid orphan memory regions being added in the /unattached QOM
container.

This commit was produced with the Coccinelle script
scripts/coccinelle/memory-region-housekeeping.cocci.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/char/serial.c