Greg Kurz 844afc54ae spapr: fix xics_system_init() error path
Commit 3d85885a1b1f3 tried to fix error handling, but it actually
went into the wrong direction by dropping the local Error *.

In the default KVM case, the rationale is to try the in-kernel XICS first,
and if not possible, to fallback to userland XICS. Passing errp everywhere
makes this fallback impossible if errp is &error_fatal (which happens to
be the case). And anyway, if the caller would pass a regular &local_err,
things would be worse: we could possibly pass an already set *errp to
error_setg() and crash, or return an error even in case of success.

So we definitely need a local Error * and only propagate it when we're
done with the fallback logic. This is what this patch does.

Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2018-06-18 09:43:19 +10:00
..
2018-06-16 16:32:33 +10:00
2018-06-16 16:32:33 +10:00
2018-03-06 13:16:29 +11:00
2018-06-16 16:32:33 +10:00
2017-09-08 09:30:55 +10:00
2017-05-07 09:57:51 +03:00
2017-01-31 10:10:13 +11:00
2017-01-31 10:10:13 +11:00
2018-06-12 09:33:52 +10:00
2018-06-04 10:15:16 +01:00
2018-03-02 13:45:50 -06:00