diff options
author | Greg Kurz <groug@kaod.org> | 2017-07-27 15:45:47 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-07-29 16:22:14 +1000 |
commit | bf26ae32a92a8446bd9db569f9cdb53cc272aaad (patch) | |
tree | d0344b29c9e52b7c14b631224a0600ec7f28cde0 /crypto | |
parent | a588c4985eff363154d65aee8607d0a4601655f7 (diff) |
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 'crypto')
0 files changed, 0 insertions, 0 deletions