qemu-patch-raspberry4/hw/xen
Juergen Gross e9dcbc86d6 xen: use qdev_unplug() instead of g_free() in xen_pv_find_xendev()
The error exits of xen_pv_find_xendev() free the new xen-device via
g_free() which is wrong.

As the xen-device has been initialized as qdev it must be removed
via qdev_unplug().

This bug has been introduced with commit 3a6c9172ac
("xen: create qdev for each backend device").

Reported-by: Roger Pau Monné <roger.pau@citrix.com>
Tested-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
2017-02-02 10:23:53 -08:00
..
Makefile.objs xen: Create a new file xen_pvdev.c 2016-10-28 17:52:48 -07:00
xen-host-pci-device.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00
xen-host-pci-device.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
xen_backend.c xen: use qdev_unplug() instead of g_free() in xen_pv_find_xendev() 2017-02-02 10:23:53 -08:00
xen_devconfig.c xen: Rename xen_be_printf to xen_pv_printf 2016-10-28 17:53:50 -07:00
xen_pt.c Xen PCI passthrough: fix passthrough failure when no interrupt pin 2016-08-04 10:42:48 -07:00
xen_pt.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
xen_pt_config_init.c Xen: fix converity warning of xen_pt_config_init() 2016-08-12 16:38:18 -07:00
xen_pt_graphics.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
xen_pt_msi.c os-posix: include sys/mman.h 2016-06-16 18:39:03 +02:00
xen_pvdev.c xen: create qdev for each backend device 2016-11-22 10:29:39 -08:00