diff options
author | Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp> | 2025-09-24 13:37:22 +0900 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-09-24 09:23:20 +0200 |
commit | f9ce08489424905ae4a70218fa35013fe88d54ed (patch) | |
tree | 03334b6a6dc9246909e2e72b4a2171a193b273fd /scripts/lib/kdoc/kdoc_files.py | |
parent | e3ed862cabce6d8a12300b941243cb44e9cd40d1 (diff) | |
download | qemu-f9ce08489424905ae4a70218fa35013fe88d54ed.zip qemu-f9ce08489424905ae4a70218fa35013fe88d54ed.tar.gz qemu-f9ce08489424905ae4a70218fa35013fe88d54ed.tar.bz2 |
hw/core/register: Do not unparent in instance_finalize()
Children are automatically unparented so manually unparenting is
unnecessary.
Worse, automatic unparenting happens before the instance_finalize()
callback of the parent gets called, so object_unparent() calls in
the callback will refer to objects that are already unparented, which
is semantically incorrect.
Signed-off-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Link: https://lore.kernel.org/r/20250924-use-v4-3-07c6c598f53d@rsg.ci.i.u-tokyo.ac.jp
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions