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: 5a11d0f7549e24a10e178a9dc8ff5e698031d9a6
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
..
2020-03-10 16:12:49 +01:00
2020-04-02 14:55:45 -04:00
2020-04-06 10:59:56 +01:00
2020-04-13 15:42:51 +01:00
2020-02-21 09:15:04 +11:00
2019-10-28 19:06:47 +01:00
2020-03-05 12:18:08 -05:00
2020-04-01 19:00:16 +02:00
2019-12-17 09:01:14 +01:00
2019-12-17 09:01:14 +01:00