]> git.ipfire.org Git - thirdparty/qemu.git/commit
qdev: Use NULL instead of local_err for qbus_child unrealize
authorGonglei <arei.gonglei@huawei.com>
Thu, 4 Sep 2014 02:18:25 +0000 (10:18 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 24 Dec 2014 21:35:32 +0000 (15:35 -0600)
commit8bb90ee80acea0b5f5ef174edd0033816b927290
treed6dfc24a48fbb040c89e85a8f37575a60765a0be
parent562d6b4f7f7ee39a4ce81ed3605e2fb4546af262
qdev: Use NULL instead of local_err for qbus_child unrealize

Forcefully unrealize all children regardless of errors in earlier
iterations (if any). We should keep going with cleanup operation
rather than report an error immediately. Therefore store the first
child unrealization failure and propagate it at the end. We also
forcefully unregister vmsd and unrealize actual object, too.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Andreas Färber <afaerber@suse.de>
(cherry picked from commit cd4520adcab70dbac8db3fe4d41836dca63715a4)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/core/qdev.c