spapr/xive: Fix error handling in kvmppc_xive_post_load()
commita845a54cbe0f197b833921b2af13fee88bb8240d
authorGreg Kurz <groug@kaod.org>
Mon, 10 Aug 2020 16:55:01 +0000 (10 18:55 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 13 Aug 2020 11:04:05 +0000 (13 21:04 +1000)
treea0319ba6ee85e716ad8cfce259f13f2a80dcc562
parent42a92d925d03ec49dfdefb43c15b46c3ca55f9e4
spapr/xive: Fix error handling in kvmppc_xive_post_load()

Now that all these functions return a negative errno on failure, check
that because it is preferred to local_err. And most of all, propagate it
because vmstate expects negative errnos.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <159707850148.1489912.18355118622296682631.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/spapr_xive_kvm.c