diff options
author | Greg Kurz | 2017-07-27 15:45:47 +0200 |
---|---|---|
committer | David Gibson | 2017-07-29 08:22:14 +0200 |
commit | bf26ae32a92a8446bd9db569f9cdb53cc272aaad (patch) | |
tree | d0344b29c9e52b7c14b631224a0600ec7f28cde0 /hw/ppc/spapr.c | |
parent | Merge remote-tracking branch 'remotes/ericb/tags/pull-nbd-2017-07-28' into st... (diff) | |
download | qemu-bf26ae32a92a8446bd9db569f9cdb53cc272aaad.tar.gz qemu-bf26ae32a92a8446bd9db569f9cdb53cc272aaad.tar.xz qemu-bf26ae32a92a8446bd9db569f9cdb53cc272aaad.zip |
spapr_drc: fix realize and unrealize
If object_property_add_alias() returns an error in realize(), we should
propagate it to the caller and certainly not unref the DRC.
Same thing goes for unrealize(). Since object_property_del() is the last
call, we can even get rid of the intermediate Error *.
And finally, unrealize() should undo all registrations performed by
realize().
Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc/spapr.c')
0 files changed, 0 insertions, 0 deletions