qemu/hw/xen
Markus Armbruster c61d1d9e49 xen/pt: Fix flawed conversion to realize()
The conversion of xen_pt_initfn() to xen_pt_realize() blindly replaced
XEN_PT_ERR() by error_setg().  Several error conditions that did not
fail xen_pt_initfn() now fail xen_pt_realize().  Unsurprisingly, the
cleanup on these errors looks highly suspicious.

Revert the inappropriate replacements.

Fixes: 5a11d0f754
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Anthony Perard <anthony.perard@citrix.com>
Cc: Paul Durrant <paul@xen.org>
Cc: xen-devel@lists.xenproject.org
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Message-Id: <20200422130719.28225-10-armbru@redhat.com>
2020-04-29 08:01:52 +02:00
..
Makefile.objs
trace-events
xen-backend.c
xen-bus-helper.c
xen-bus.c
xen-common.c
xen-host-pci-device.c
xen-host-pci-device.h
xen-legacy-backend.c
xen_devconfig.c
xen_pt.c
xen_pt.h
xen_pt_config_init.c
xen_pt_graphics.c
xen_pt_load_rom.c
xen_pt_msi.c
xen_pvdev.c